}
goto STOP_SCAN;
}
+
+ ms_bacth_commit_disable(handle, TRUE, TRUE, uid);
+ ms_bacth_commit_enable(handle, TRUE, TRUE, MS_NOTI_SWITCH_OFF, pid);
/* get the current path from directory array */
current_path = g_array_index(dir_array , char*, 0);
g_array_remove_index (dir_array, 0);
__msc_clear_file_list(dir_array);
+ ms_bacth_commit_disable(handle, TRUE, TRUE, uid);
+
if (ret != MS_MEDIA_ERR_NONE) MS_DBG_INFO("ret : %d", ret);
return ret;
if (ret != MS_MEDIA_ERR_NONE) {
goto STOP_SCAN;
}
+
+ ms_bacth_commit_disable(handle, TRUE, TRUE, uid);
+ ms_bacth_commit_enable(handle, TRUE, TRUE, MS_NOTI_SWITCH_OFF, pid);
+
/* get the current path from directory array */
current_path = g_array_index(dir_array , char*, 0);
g_array_remove_index(dir_array, 0);
ms_set_folder_scan_status(handle, storage_id, current_path, MS_DIR_SCAN_STOP, uid);
EXIT:
-
+
if (fd != -1) {
close(fd);
fd = -1;
__msc_set_storage_scan_cur_path(NULL);
__msc_clear_file_list(dir_array);
+ ms_bacth_commit_disable(handle, TRUE, TRUE, uid);
+
if (ret != MS_MEDIA_ERR_NONE) MS_DBG_INFO("ret : %d", ret);
return ret;