mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-19 16:15:07 +00:00
sstables: use u-ref to avoid copy of partitions
Suggested-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com> Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
This commit is contained in:
committed by
Tomasz Grabiec
parent
84cbe7c862
commit
617484c8f1
@@ -1047,7 +1047,7 @@ static future<> write_index_entry(file_writer& out, disk_string_view<uint16_t>&
|
||||
static constexpr int BASE_SAMPLING_LEVEL = 128;
|
||||
|
||||
static void prepare_summary(summary& s, const memtable& mt) {
|
||||
auto all_partitions = mt.all_partitions();
|
||||
auto&& all_partitions = mt.all_partitions();
|
||||
assert(all_partitions.size() >= 1);
|
||||
|
||||
s.header.min_index_interval = BASE_SAMPLING_LEVEL;
|
||||
|
||||
Reference in New Issue
Block a user