mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 18:00:41 +00:00
feat: add skip_wal_replay to OpenRegion instruction (#2977)
feat: add skip_wal_replay to OpenRegion instruction
This commit is contained in:
@@ -55,7 +55,8 @@ impl RegionHeartbeatResponseHandler {
|
||||
region_storage_path,
|
||||
region_options,
|
||||
region_wal_options,
|
||||
}) => Ok(Box::new(|region_server| {
|
||||
skip_wal_replay,
|
||||
}) => Ok(Box::new(move |region_server| {
|
||||
Box::pin(async move {
|
||||
let region_id = Self::region_ident_to_region_id(®ion_ident);
|
||||
// TODO(niebayes): extends region options with region_wal_options.
|
||||
@@ -64,7 +65,7 @@ impl RegionHeartbeatResponseHandler {
|
||||
engine: region_ident.engine,
|
||||
region_dir: region_dir(®ion_storage_path, region_id),
|
||||
options: region_options,
|
||||
skip_wal_replay: false,
|
||||
skip_wal_replay,
|
||||
});
|
||||
let result = region_server.handle_request(region_id, request).await;
|
||||
|
||||
@@ -244,6 +245,7 @@ mod tests {
|
||||
path,
|
||||
HashMap::new(),
|
||||
HashMap::new(),
|
||||
false,
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user