mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-02 14:15:46 +00:00
message/messaging_service: MIGRATION_REQUEST wrappers
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
@@ -397,6 +397,13 @@ future<> messaging_service::send_definitions_update(shard_id id, std::vector<fro
|
||||
return send_message_oneway(this, messaging_verb::DEFINITIONS_UPDATE, std::move(id), std::move(fm));
|
||||
}
|
||||
|
||||
void messaging_service::register_migration_request(std::function<future<std::vector<frozen_mutation>> (gms::inet_address reply_to, unsigned shard)>&& func) {
|
||||
register_handler(this, net::messaging_verb::MIGRATION_REQUEST, std::move(func));
|
||||
}
|
||||
future<std::vector<frozen_mutation>> messaging_service::send_migration_request(shard_id id, gms::inet_address reply_to, unsigned shard) {
|
||||
return send_message<std::vector<frozen_mutation>>(this, messaging_verb::MIGRATION_REQUEST, std::move(id), std::move(reply_to), std::move(shard));
|
||||
}
|
||||
|
||||
void messaging_service::register_mutation(std::function<rpc::no_wait_type (frozen_mutation fm, std::vector<inet_address> forward,
|
||||
inet_address reply_to, unsigned shard, response_id_type response_id)>&& func) {
|
||||
register_handler(this, net::messaging_verb::MUTATION, std::move(func));
|
||||
|
||||
@@ -466,6 +466,10 @@ public:
|
||||
void register_definitions_update(std::function<rpc::no_wait_type (std::vector<frozen_mutation> fm)>&& func);
|
||||
future<> send_definitions_update(shard_id id, std::vector<frozen_mutation> fm);
|
||||
|
||||
// Wrapper for MIGRATION_REQUEST
|
||||
void register_migration_request(std::function<future<std::vector<frozen_mutation>> (gms::inet_address reply_to, unsigned shard)>&& func);
|
||||
future<std::vector<frozen_mutation>> send_migration_request(shard_id id, gms::inet_address reply_to, unsigned shard);
|
||||
|
||||
// FIXME: response_id_type is an alias in service::storage_proxy::response_id_type
|
||||
using response_id_type = uint64_t;
|
||||
// Wrapper for MUTATION
|
||||
|
||||
Reference in New Issue
Block a user