Skip to content

Commit

Permalink
DOSE-810 (openzfs#34)
Browse files Browse the repository at this point in the history
Send final merge progress message with final free list content
  • Loading branch information
mmaybee authored Dec 1, 2021
1 parent 7906583 commit 34a60be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/zfs_object_agent/zettacache/src/zettacache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,11 @@ impl MergeState {
);
debug!("skipped {} index entries", index_skips);

// Send final checkpoint progress message with final free_list content
tx.send(MergeMessage::new_progress(&mut next_index, free_list).await)
.await
.unwrap_or_else(|e| panic!("couldn't send: {}", e));

drop(old_index);
next_index.flush().await;

Expand Down

0 comments on commit 34a60be

Please sign in to comment.