mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 13:37:04 +00:00
repair: Add get_full_row_hashes_sink_op
It is a helper that works on the sink() of the get_full_row_hashes rpc stream verb.
This commit is contained in:
@@ -1227,6 +1227,16 @@ private:
|
||||
});
|
||||
}
|
||||
|
||||
future<> get_full_row_hashes_sink_op(rpc::sink<repair_stream_cmd>& sink) {
|
||||
return sink(repair_stream_cmd::get_full_row_hashes).then([&sink] {
|
||||
return sink.flush();
|
||||
}).handle_exception([&sink] (std::exception_ptr ep) {
|
||||
return sink.close().then([ep = std::move(ep)] () mutable {
|
||||
return make_exception_future<>(std::move(ep));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public:
|
||||
// RPC handler
|
||||
future<std::unordered_set<repair_hash>>
|
||||
|
||||
Reference in New Issue
Block a user