mirror of
https://github.com/simon987/sist2.git
synced 2025-12-14 15:59:03 +00:00
Add thread lock for incremental_mark_file_for_copy()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user