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 661e539f45
commit 3f0c194a2f

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