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

@@ -133,6 +133,9 @@ static int incremental_get_str(GHashTable *table, const char *path_md5) {
}
}
/**
* Not thread safe!
*/
__always_inline
static int incremental_mark_file_for_copy(GHashTable *table, const unsigned char path_md5[MD5_DIGEST_LENGTH]) {
char *ptr = malloc(MD5_STR_LENGTH);