dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
24.46k stars 884 forks source link

Fix migration comparison #3238

Open BorysTheDev opened 3 days ago

BorysTheDev commented 3 days ago

to compare migration we use only node_id which can be dangerous if the config cancels migration for a node and creates a new one for the same node. We need to provide SlotsRanges class that will store sorted vector and we need to use SlotsRanges together with node_id to be sure that migration is the same