Fix snapshot commit failure propagation to ensure sync exits with error

This commit is contained in:
Andrea Mazzoleni 2026-08-12 15:01:00 +02:00
parent 6cab8e3909
commit 3b462fed17

View file

@ -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) {