Skip to content

Commit

Permalink
Restore the relevant part of a deleted comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed May 22, 2023
1 parent e2fa0a4 commit 5691b70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shardtree/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,8 @@ where
return Ok(false);
}

// Update the rightmost subtree to add the `CHECKPOINT` flag to the right-most leaf (which
// need not be a level-0 leaf; it's fine to rewind to a pruned state).
if let Some(subtree) = self.store.last_shard()? {
if let Some((replacement, checkpoint_position)) = go(subtree.root_addr, &subtree.root) {
if self
Expand Down

0 comments on commit 5691b70

Please sign in to comment.