From 76d35f5abce8e340721be75606704cd38c2319ef Mon Sep 17 00:00:00 2001 From: whatdoineed2do/Ray Date: Sat, 25 Jul 2020 11:46:45 +0100 Subject: [PATCH] [scan] bulk_scan() counter reset before processing any library dirs --- src/library/filescanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/filescanner.c b/src/library/filescanner.c index 4e5a3615..c3731469 100644 --- a/src/library/filescanner.c +++ b/src/library/filescanner.c @@ -1032,6 +1032,7 @@ bulk_scan(int flags) dirstack = NULL; lib = cfg_getsec(cfg, "library"); + counter = 0; ndirs = cfg_size(lib, "directories"); for (i = 0; i < ndirs; i++) @@ -1061,7 +1062,6 @@ bulk_scan(int flags) continue; } - counter = 0; db_transaction_begin(); process_directories(deref, parent_id, flags);