mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
raft cluster
wip: raft does not care about migrating wip: optimize code wip: raft election wip wip: fix raft leader missing log entries wip fix a dead lock batch set slot route wip: raft persist wip refactor cluster suite remove relay rename relay2 refactor: allow customizing client factory test raft refactor re-balance avoid errors caused by inconsistent status on follower nodes during raft commits test raft election
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/hdt3213/godis/interface/redis"
|
||||
)
|
||||
|
||||
// PongReply is +PONG
|
||||
type PongReply struct{}
|
||||
|
||||
@@ -57,6 +62,10 @@ func MakeEmptyMultiBulkReply() *EmptyMultiBulkReply {
|
||||
return &EmptyMultiBulkReply{}
|
||||
}
|
||||
|
||||
func IsEmptyMultiBulkReply(reply redis.Reply) bool {
|
||||
return bytes.Equal(reply.ToBytes(), emptyMultiBulkBytes)
|
||||
}
|
||||
|
||||
// NoReply respond nothing, for commands like subscribe
|
||||
type NoReply struct{}
|
||||
|
||||
|
Reference in New Issue
Block a user