25 lines
581 B
C++
25 lines
581 B
C++
/*
|
|
* Copyright (C) 2018-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "schema/schema_fwd.hh"
|
|
#include "readers/flat_mutation_reader_v2.hh"
|
|
#include "dht/i_partitioner_fwd.hh"
|
|
#include "utils/phased_barrier.hh"
|
|
|
|
namespace mutation_writer {
|
|
|
|
future<uint64_t> distribute_reader_and_consume_on_shards(schema_ptr s,
|
|
const dht::sharder& sharder,
|
|
flat_mutation_reader_v2 producer,
|
|
std::function<future<> (flat_mutation_reader_v2)> consumer,
|
|
utils::phased_barrier::operation&& op = {});
|
|
|
|
} // namespace mutation_writer
|