mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 09:26:27 -05:00
Fix snapshot commit failure propagation to ensure sync exits with error
This commit is contained in:
parent
6cab8e3909
commit
3b462fed17
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 */
|
/* commit the snapshot as stable */
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
state_snapshot_commit(&state);
|
ret = state_snapshot_commit(&state);
|
||||||
state_snapshot_cleanup(&state);
|
state_snapshot_cleanup(&state);
|
||||||
}
|
}
|
||||||
} else if (operation == OPERATION_DRY) {
|
} else if (operation == OPERATION_DRY) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue