Skip to content

Commit

Permalink
directly return when found no table datas to replay.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Jul 11, 2023
1 parent 6478a83 commit abbdbd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions analytic_engine/src/instance/open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,15 @@ impl ShardOpener {
}
}

if replay_table_datas.is_empty() {
info!(
"ShardOpener recover empty table datas finish,, shard_id:{}",
self.shard_id
);

return Ok(());
}

let replay_mode = match self.recover_mode {
RecoverMode::TableBased => ReplayMode::TableBased,
RecoverMode::ShardBased => ReplayMode::RegionBased,
Expand Down

0 comments on commit abbdbd8

Please sign in to comment.