mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 14:36:38 -05:00
Reduces memory occupation with many files.
This commit is contained in:
parent
a41443b6b6
commit
b7bedc8b60
5 changed files with 43 additions and 3 deletions
2
scan.c
2
scan.c
|
|
@ -339,7 +339,7 @@ static void scan_file(struct snapraid_scan* scan, struct snapraid_state* state,
|
|||
tommy_hashdyn_remove_existing(&disk->pathset, &file->pathset);
|
||||
|
||||
/* save the new name */
|
||||
pathcpy(file->sub, sizeof(file->sub), sub);
|
||||
file_rename(file, sub);
|
||||
|
||||
/* reinsert in the set */
|
||||
tommy_hashdyn_insert(&disk->pathset, &file->pathset, file, file_path_hash(file->sub));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue