mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fix false file modification report after threshold-aborted sync
This commit is contained in:
parent
bbadcf252f
commit
e088672ccd
1 changed files with 4 additions and 0 deletions
|
|
@ -1838,10 +1838,14 @@ int snapraid_main(int argc, char* argv[])
|
|||
state_scan(&state);
|
||||
|
||||
if (opt.gui_threshold_removes != 0 && state.removed_files >= opt.gui_threshold_removes) {
|
||||
if (state.need_write)
|
||||
state_write(&state);
|
||||
log_fatal(EUSER, "Too many files were removed (%u, limit is %u). Sync aborted.\n", state.removed_files, opt.gui_threshold_removes);
|
||||
exit(EXIT_SYNC_NEEDED);
|
||||
}
|
||||
if (opt.gui_threshold_updates != 0 && state.updated_files >= opt.gui_threshold_updates) {
|
||||
if (state.need_write)
|
||||
state_write(&state);
|
||||
log_fatal(EUSER, "Too many files were updated (%u, limit is %u). Sync aborted.\n", state.updated_files, opt.gui_threshold_updates);
|
||||
exit(EXIT_SYNC_NEEDED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue