mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Fix snapshot commit failure propagation to ensure sync exits with error
This commit is contained in:
parent
fbd9b9ea49
commit
b71996984f
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