mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
repair: Make send_repair_checksum_range timeout
If the verb never returns the repair will hangs forever. Make it use the timeout version of the send_message. Fixes #2662
This commit is contained in:
@@ -964,8 +964,8 @@ void messaging_service::unregister_repair_checksum_range() {
|
||||
future<partition_checksum> messaging_service::send_repair_checksum_range(
|
||||
msg_addr id, sstring keyspace, sstring cf, ::dht::token_range range, repair_checksum hash_version)
|
||||
{
|
||||
return send_message<partition_checksum>(this,
|
||||
messaging_verb::REPAIR_CHECKSUM_RANGE, std::move(id),
|
||||
return send_message_timeout<partition_checksum>(this,
|
||||
messaging_verb::REPAIR_CHECKSUM_RANGE, std::move(id), streaming_timeout,
|
||||
std::move(keyspace), std::move(cf), std::move(range), hash_version);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user