mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
feat(cluster): Cancel blocking commands on cluster update (#2255)
Handle blocking commands during cluster config update --------- Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
e4da54fdeb
commit
aaf01d4244
25 changed files with 173 additions and 77 deletions
|
@ -311,6 +311,10 @@ bool ClusterConfig::IsMySlot(SlotId id) const {
|
|||
return my_slots_.test(id);
|
||||
}
|
||||
|
||||
bool ClusterConfig::IsMySlot(std::string_view key) const {
|
||||
return IsMySlot(KeySlot(key));
|
||||
}
|
||||
|
||||
ClusterConfig::Node ClusterConfig::GetMasterNodeForSlot(SlotId id) const {
|
||||
CHECK_LT(id, my_slots_.size()) << "Requesting a non-existing slot id " << id;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue