only add new entries into new_table to save memory

This commit is contained in:
Yatao Li
2022-01-20 23:39:38 +08:00
parent 2cb57f3634
commit e65905a165
4 changed files with 5 additions and 5 deletions

View File

@@ -81,7 +81,6 @@ void parse(void *arg) {
if (inc_ts != 0 && inc_ts == job->vfile.info.st_mtim.tv_sec) {
pthread_mutex_lock(&ScanCtx.copy_table_mu);
incremental_mark_file(ScanCtx.copy_table, doc->path_md5);
incremental_mark_file(ScanCtx.new_table, doc->path_md5);
pthread_mutex_unlock(&ScanCtx.copy_table_mu);
pthread_mutex_lock(&ScanCtx.dbg_file_counts_mu);