mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 19:21:01 +00:00
streaming: Remove system_distributed_keyspace and view_update_generator
Now all the code is happy with view_builder and can be shortened Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
@@ -516,7 +516,7 @@ void repair_writer_impl::create_writer(lw_shared_ptr<repair_writer> w) {
|
||||
auto erm = t.get_effective_replication_map();
|
||||
auto& sharder = erm->get_sharder(*(w->schema()));
|
||||
_writer_done = mutation_writer::distribute_reader_and_consume_on_shards(_schema, sharder, std::move(_queue_reader),
|
||||
streaming::make_streaming_consumer(sstables::repair_origin, _db, _sys_dist_ks, _view_update_generator, _view_builder, w->get_estimated_partitions(), _reason, is_offstrategy_supported(_reason), topo_guard),
|
||||
streaming::make_streaming_consumer(sstables::repair_origin, _db, _view_builder, w->get_estimated_partitions(), _reason, is_offstrategy_supported(_reason), topo_guard),
|
||||
t.stream_in_progress()).then([w, erm] (uint64_t partitions) {
|
||||
rlogger.debug("repair_writer: keyspace={}, table={}, managed to write partitions={} to sstable",
|
||||
w->schema()->ks_name(), w->schema()->cf_name(), partitions);
|
||||
|
||||
@@ -20,8 +20,6 @@ namespace streaming {
|
||||
|
||||
std::function<future<> (flat_mutation_reader_v2)> make_streaming_consumer(sstring origin,
|
||||
sharded<replica::database>& db,
|
||||
sharded<db::system_distributed_keyspace>& sys_dist_ks,
|
||||
sharded<db::view::view_update_generator>& vug,
|
||||
sharded<db::view::view_builder>& vb,
|
||||
uint64_t estimated_partitions,
|
||||
stream_reason reason,
|
||||
|
||||
@@ -15,9 +15,7 @@ class database;
|
||||
}
|
||||
|
||||
namespace db {
|
||||
class system_distributed_keyspace;
|
||||
namespace view {
|
||||
class view_update_generator;
|
||||
class view_builder;
|
||||
}
|
||||
}
|
||||
@@ -26,8 +24,6 @@ namespace streaming {
|
||||
|
||||
std::function<future<>(flat_mutation_reader_v2)> make_streaming_consumer(sstring origin,
|
||||
sharded<replica::database>& db,
|
||||
sharded<db::system_distributed_keyspace>& sys_dist_ks,
|
||||
sharded<db::view::view_update_generator>& vug,
|
||||
sharded<db::view::view_builder>& vb,
|
||||
uint64_t estimated_partitions,
|
||||
stream_reason reason,
|
||||
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
|
||||
std::function<future<>(flat_mutation_reader_v2)>
|
||||
stream_manager::make_streaming_consumer(uint64_t estimated_partitions, stream_reason reason, service::frozen_topology_guard topo_guard) {
|
||||
return streaming::make_streaming_consumer("streaming", _db, _sys_dist_ks, _view_update_generator, _view_builder, estimated_partitions, reason, is_offstrategy_supported(reason), topo_guard);
|
||||
return streaming::make_streaming_consumer("streaming", _db, _view_builder, estimated_partitions, reason, is_offstrategy_supported(reason), topo_guard);
|
||||
}
|
||||
|
||||
void stream_manager::init_messaging_service_handler(abort_source& as) {
|
||||
|
||||
Reference in New Issue
Block a user