process: do not change update_id on skipped files.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 18:58:22 +0000 (16:58 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 18:58:22 +0000 (16:58 -0200)
if we skipped a file it doesn't go to DB and thus we shouldn't mess
with counter and thus update_id. It is the same case as the file was
up to date.

src/lib/lightmediascanner_process.c

index 3d78ed1..92aa007 100644 (file)
@@ -565,7 +565,9 @@ _slave_work(struct pinfo *pinfo)
 
         _slave_send_reply(fds, r);
 
-        if (r < 0 || r == LMS_PROGRESS_STATUS_UP_TO_DATE)
+        if (r < 0 ||
+            (r == LMS_PROGRESS_STATUS_UP_TO_DATE ||
+             r == LMS_PROGRESS_STATUS_SKIPPED))
             continue;
 
         counter++;