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:
Raphael S. Carvalho
2015-05-21 14:39:04 -03:00
committed by Tomasz Grabiec
parent 84cbe7c862
commit 617484c8f1

View File

@@ -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;