Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Liang Zhao committed Mar 10, 2023
1 parent a1725e7 commit abf9e81
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/meta/src/barrier/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,17 @@ where
self.source_manager.clone(),
));

let mce = self
.hummock_manager
.get_current_version()
.await
.max_committed_epoch;

if mce != INVALID_EPOCH {
command_ctx.wait_epoch_commit(mce).await?;
#[cfg(not(test))]
{
let mce = self
.hummock_manager
.get_current_version()
.await
.max_committed_epoch;

if mce != INVALID_EPOCH {
command_ctx.wait_epoch_commit(mce).await?;
}
}

let (barrier_complete_tx, mut barrier_complete_rx) =
Expand Down

0 comments on commit abf9e81

Please sign in to comment.