Skip to content

Commit

Permalink
Fix checkpoint deletion assertion failure (openzfs#228)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
  • Loading branch information
pcd1193182 authored Feb 18, 2022
1 parent 5afe521 commit 169cf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zfs_object_agent/zettaobject/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ impl Pool {
checkpoint_txg,
syncing_state.syncing_txg.unwrap().checked_sub(1)
);
} else {
} else if syncing_state.checkpoint_txg.is_none() == checkpoint_txg.is_none() {
// Either there's no checkpoint now or before, or there should be the same checkpoint
// txg in both this txg and the previous one.
assert_eq!(syncing_state.checkpoint_txg, checkpoint_txg);
Expand Down

0 comments on commit 169cf22

Please sign in to comment.