consul: Fixing blocking query returning old result

This commit is contained in:
Armon Dadgar 2015-01-13 11:51:24 -08:00
parent 2baa97dde5
commit 9a43063778
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ func (k *KVS) List(args *structs.KeyRequest, reply *structs.IndexedDirEntries) e
} else {
reply.Index = index
}
reply.Entries = nil
} else {
// Determine the maximum affected index
var maxIndex uint64