Skip to content

Commit c83bf66

Browse files
committed
fix: directly return when found no table datas to replay (#1062)
## Rationale Now it will still scan logs from wal when no table datas needed to replay, it should directly return actually. ## Detailed Changes Add a fast path to return directly when no table datas needed to replay. ## Test Plan Test manually.
1 parent f0e6da1 commit c83bf66

File tree

1 file changed

+9
-0
lines changed
  • analytic_engine/src/instance

1 file changed

+9
-0
lines changed

analytic_engine/src/instance/open.rs

+9
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,15 @@ impl ShardOpener {
357357
}
358358
}
359359

360+
if replay_table_datas.is_empty() {
361+
info!(
362+
"ShardOpener recover empty table datas finish, shard_id:{}",
363+
self.shard_id
364+
);
365+
366+
return Ok(());
367+
}
368+
360369
let replay_mode = match self.recover_mode {
361370
RecoverMode::TableBased => ReplayMode::TableBased,
362371
RecoverMode::ShardBased => ReplayMode::RegionBased,

0 commit comments

Comments
 (0)