Skip to content

Commit

Permalink
fix: fix region re-open bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Sep 15, 2023
1 parent c149c12 commit 108d3b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/datanode/src/datanode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use query::QueryEngineFactory;
use servers::Mode;
use snafu::{OptionExt, ResultExt};
use store_api::logstore::LogStore;
use store_api::path_utils::WAL_DIR;
use store_api::path_utils::{region_dir, WAL_DIR};
use store_api::region_engine::RegionEngineRef;
use store_api::region_request::{RegionOpenRequest, RegionRequest};
use store_api::storage::RegionId;
Expand Down Expand Up @@ -246,7 +246,8 @@ impl DatanodeBuilder {

info!("going to open {} regions", regions.len());

for (region_id, engine, region_dir) in regions {
for (region_id, engine, path) in regions {
let region_dir = region_dir(&path, region_id);
region_server
.handle_request(
region_id,
Expand Down

0 comments on commit 108d3b1

Please sign in to comment.