mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
redis-trib: fix open slot correction.
Slot zero was hardcoded (!)
This commit is contained in:
parent
813d7cbdd1
commit
be7bdd376e
@ -407,8 +407,7 @@ class RedisTrib
|
|||||||
# Case 1: The slot is in migrating state in one slot, and in
|
# Case 1: The slot is in migrating state in one slot, and in
|
||||||
# importing state in 1 slot. That's trivial to address.
|
# importing state in 1 slot. That's trivial to address.
|
||||||
if migrating.length == 1 && importing.length == 1
|
if migrating.length == 1 && importing.length == 1
|
||||||
puts "Moving slot zero to #{importing[1]}"
|
move_slot(migrating[0],importing[0],slot,:verbose=>true)
|
||||||
move_slot(migrating[0],importing[0],0,:verbose=>true)
|
|
||||||
else
|
else
|
||||||
puts "Sorry, Redis-trib can't fix this slot yet (work in progress)"
|
puts "Sorry, Redis-trib can't fix this slot yet (work in progress)"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user