Add thread lock for incremental_mark_file_for_copy()

This commit is contained in:
2021-12-29 19:18:10 -05:00
parent 81008d8936
commit ee9a8fa514
4 changed files with 7 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ void initialize_scan_context(scan_args_t *args) {
ScanCtx.dbg_current_files = g_hash_table_new_full(g_int64_hash, g_int64_equal, NULL, NULL);
pthread_mutex_init(&ScanCtx.dbg_current_files_mu, NULL);
pthread_mutex_init(&ScanCtx.dbg_file_counts_mu, NULL);
pthread_mutex_init(&ScanCtx.copy_table_mu, NULL);
ScanCtx.calculate_checksums = args->calculate_checksums;