parse: fix full scan regression

This commit is contained in:
Yatao Li 2022-01-23 00:41:13 +08:00
parent 8f7edf3190
commit 501064da10

View File

@ -89,9 +89,11 @@ void parse(void *arg) {
return; return;
} }
pthread_mutex_lock(&ScanCtx.copy_table_mu); if (ScanCtx.new_table != NULL) {
incremental_mark_file(ScanCtx.new_table, doc->path_md5); pthread_mutex_lock(&ScanCtx.copy_table_mu);
pthread_mutex_unlock(&ScanCtx.copy_table_mu); incremental_mark_file(ScanCtx.new_table, doc->path_md5);
pthread_mutex_unlock(&ScanCtx.copy_table_mu);
}
char *buf[MAGIC_BUF_SIZE]; char *buf[MAGIC_BUF_SIZE];