Skip to content

Commit

Permalink
[SKIP AFTER 4.5] Backport a4053db
Browse files Browse the repository at this point in the history
Attempt at reduce number of sstables during repair
  • Loading branch information
geobeau committed Sep 27, 2021
1 parent 94895ce commit 4b9cfb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repair/row_level.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ class repair_writer : public enable_lw_shared_from_this<repair_writer> {
auto metadata = mutation_source_metadata{};
auto& cs = t->get_compaction_strategy();
const auto adjusted_estimated_partitions = cs.adjust_partition_estimate(metadata, estimated_partitions);
auto consumer = cs.make_interposer_consumer(metadata,
[t = std::move(t), use_view_update_path, adjusted_estimated_partitions] (flat_mutation_reader reader) {

auto consumer = [t = std::move(t), use_view_update_path, adjusted_estimated_partitions] (flat_mutation_reader reader) {
sstables::shared_sstable sst = use_view_update_path ? t->make_streaming_staging_sstable() : t->make_streaming_sstable_for_write();
schema_ptr s = reader.schema();
auto& pc = service::get_local_streaming_priority();
Expand All @@ -597,7 +597,7 @@ class repair_writer : public enable_lw_shared_from_this<repair_writer> {
}
return _view_update_generator->local().register_staging_sstable(sst, std::move(t));
});
});
};
return consumer(std::move(reader));
});
},
Expand Down

0 comments on commit 4b9cfb9

Please sign in to comment.