Remove the queue for the folder insertion 46/206546/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 21 May 2019 06:27:03 +0000 (15:27 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 21 May 2019 06:27:03 +0000 (15:27 +0900)
No longer needed due to scanner logic changes

Change-Id: If0c1cf1e9b0c1bfc2c47661b9a971f9e763f3bda
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/scanner/media-scanner-scan.c

index a1b2d23..a1043d6 100755 (executable)
@@ -84,8 +84,6 @@ static int __msc_dir_scan(sqlite3 *handle, const char *storage_id, const char*st
                        continue;
                }
 
-               ms_insert_folder_start();
-
                dir = g_dir_open(current_path, 0, &error);
                if (error == NULL && dir != NULL) {
                        if (ms_insert_folder(handle, storage_id, current_path, uid) != MS_MEDIA_ERR_NONE)
@@ -93,10 +91,8 @@ static int __msc_dir_scan(sqlite3 *handle, const char *storage_id, const char*st
 
                        while ((name = g_dir_read_name(dir))) {
                                ret = __msc_check_stop_status();
-                               if (ret != MS_MEDIA_ERR_NONE) {
-                                       ms_insert_folder_end(uid);
+                               if (ret != MS_MEDIA_ERR_NONE)
                                        goto STOP_SCAN;
-                               }
 
                                if (name[0] == '.')
                                        continue;
@@ -151,8 +147,6 @@ static int __msc_dir_scan(sqlite3 *handle, const char *storage_id, const char*st
                        dir = NULL;
                }
 
-               ms_insert_folder_end(uid);
-
                MS_SAFE_FREE(current_path);
        }