From 8068c73b29478f7781f1ca7463e37fb681f09847 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 13 Jan 2015 11:51:24 -0800 Subject: [PATCH] consul: Fixing blocking query returning old result --- consul/kvs_endpoint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consul/kvs_endpoint.go b/consul/kvs_endpoint.go index 0851c9e4f5..16140fa09b 100644 --- a/consul/kvs_endpoint.go +++ b/consul/kvs_endpoint.go @@ -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