Fix a bug that index block's restart_block_interval is not 1
Summary: This bug may affect the seek performance. Test Plan: make make check Also gdb into some index block builder to make sure the restart_block_interval is `1`.
This commit is contained in:
parent
a1d38a41fd
commit
1ca86f0391
@ -99,12 +99,11 @@ struct TableBuilder::Rep {
|
|||||||
index_block_options(opt),
|
index_block_options(opt),
|
||||||
file(f),
|
file(f),
|
||||||
data_block(&options),
|
data_block(&options),
|
||||||
index_block(&index_block_options),
|
index_block(1, index_block_options.comparator),
|
||||||
enable_compression(enable_compression),
|
enable_compression(enable_compression),
|
||||||
filter_block(opt.filter_policy == nullptr ? nullptr
|
filter_block(opt.filter_policy == nullptr ? nullptr
|
||||||
: new FilterBlockBuilder(opt)),
|
: new FilterBlockBuilder(opt)),
|
||||||
pending_index_entry(false) {
|
pending_index_entry(false) {
|
||||||
index_block_options.block_restart_interval = 1;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user