mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
consul: Fixing blocking query returning old result
This commit is contained in:
parent
ed6abe05fb
commit
8068c73b29
@ -157,6 +157,8 @@ func (k *KVS) List(args *structs.KeyRequest, reply *structs.IndexedDirEntries) e
|
|||||||
} else {
|
} else {
|
||||||
reply.Index = index
|
reply.Index = index
|
||||||
}
|
}
|
||||||
|
reply.Entries = nil
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Determine the maximum affected index
|
// Determine the maximum affected index
|
||||||
var maxIndex uint64
|
var maxIndex uint64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user