mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fix snapshot commit failure propagation to ensure sync exits with error
This commit is contained in:
parent
661e539f45
commit
3f0c194a2f
1 changed files with 1 additions and 1 deletions
|
|
@ -1865,7 +1865,7 @@ int snapraid_main(int argc, char* argv[])
|
|||
|
||||
/* commit the snapshot as stable */
|
||||
if (ret == 0) {
|
||||
state_snapshot_commit(&state);
|
||||
ret = state_snapshot_commit(&state);
|
||||
state_snapshot_cleanup(&state);
|
||||
}
|
||||
} else if (operation == OPERATION_DRY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue