mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-21 15:59:26 +08:00
add some unittests and bug fix
This commit is contained in:
@@ -146,7 +146,7 @@ func MSetNX(cluster *Cluster, c redis.Connection, args [][]byte) redis.Reply {
|
||||
size := argCount / 2
|
||||
for i := 0; i < size; i++ {
|
||||
key := string(args[2*i])
|
||||
currentPeer := cluster.peerPicker.Get(key)
|
||||
currentPeer := cluster.peerPicker.PickNode(key)
|
||||
if peer == "" {
|
||||
peer = currentPeer
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user