high CPU ocuppation of media-scanner after umount USB 11/115711/1
authorchen89.chen <chen89.chen@samsung.com>
Tue, 21 Feb 2017 06:24:58 +0000 (14:24 +0800)
committerchen89.chen <chen89.chen@samsung.com>
Tue, 21 Feb 2017 06:26:42 +0000 (14:26 +0800)
Change-Id: I684ede999e44a013d01916f340d68dc94e2e0f6f

src/scanner-v2/media-scanner-extract-v2.c

index c87fe46..8e8b38e 100755 (executable)
@@ -137,7 +137,7 @@ int __msc_folder_bulk_extract(void **handle, const char* storage_id, int storage
 
                ret = __msc_check_extract_stop_status(scan_type, storage_type, path, pid, is_end);
                if (ret == MS_MEDIA_ERR_SCANNER_FORCE_STOP) {
-                       MS_DBG_ERR("__msc_folder_bulk_extract MS_MEDIA_ERR_SCANNER_FORCE_STOP %s");
+                       MS_DBG_ERR("__msc_folder_bulk_extract MS_MEDIA_ERR_SCANNER_FORCE_STOP");
                        break;
                }
 
@@ -158,7 +158,7 @@ int __msc_folder_bulk_extract(void **handle, const char* storage_id, int storage
                }
        }
 
-       if(extract_count > 0&& !ret) {
+       if(extract_count > 0) {
                ret = ms_query_do_update_list(handle);
        }