mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-03 20:02:54 +00:00
fix: fallback to window size in manifest (#4629)
This commit is contained in:
@@ -202,8 +202,8 @@ impl RegionOpener {
|
||||
options.need_dedup(),
|
||||
options.merge_mode(),
|
||||
);
|
||||
// Initial memtable id is 0.
|
||||
let part_duration = options.compaction.time_window();
|
||||
// Initial memtable id is 0.
|
||||
let mutable = Arc::new(TimePartitions::new(
|
||||
metadata.clone(),
|
||||
memtable_builder.clone(),
|
||||
@@ -335,8 +335,13 @@ impl RegionOpener {
|
||||
region_options.need_dedup(),
|
||||
region_options.merge_mode(),
|
||||
);
|
||||
// Use compaction time window in the manifest if region doesn't provide
|
||||
// the time window option.
|
||||
let part_duration = region_options
|
||||
.compaction
|
||||
.time_window()
|
||||
.or(manifest.compaction_time_window);
|
||||
// Initial memtable id is 0.
|
||||
let part_duration = region_options.compaction.time_window();
|
||||
let mutable = Arc::new(TimePartitions::new(
|
||||
metadata.clone(),
|
||||
memtable_builder.clone(),
|
||||
|
||||
Reference in New Issue
Block a user