From 72118766887f20fee9bd0ec9d4611e87c8d07d94 Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Fri, 12 Jun 2015 16:07:42 +0200 Subject: [PATCH 1/2] Make behaviour of keyprefixes always matching all keys in a prefix more clear. --- website/source/docs/agent/watches.html.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/source/docs/agent/watches.html.markdown b/website/source/docs/agent/watches.html.markdown index d02e92eb8b..d4f107c9bd 100644 --- a/website/source/docs/agent/watches.html.markdown +++ b/website/source/docs/agent/watches.html.markdown @@ -105,7 +105,9 @@ An example of the output of this command: ### Type: keyprefix The "keyprefix" watch type is used to watch a prefix of keys in the KV store. -It requires that the "prefix" parameter be specified. +It requires that the "prefix" parameter be specified. Note that the watch +returns *all* keys matching the prefix whenever *any* key matching the prefix +changes. This maps to the `/v1/kv/` API internally. From 74ac30c6013e8b3d06bff6b19c3aa58f6ffc47a1 Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Fri, 12 Jun 2015 16:09:44 +0200 Subject: [PATCH 2/2] Wording. --- website/source/docs/agent/watches.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/agent/watches.html.markdown b/website/source/docs/agent/watches.html.markdown index d4f107c9bd..6877b57b48 100644 --- a/website/source/docs/agent/watches.html.markdown +++ b/website/source/docs/agent/watches.html.markdown @@ -105,7 +105,7 @@ An example of the output of this command: ### Type: keyprefix The "keyprefix" watch type is used to watch a prefix of keys in the KV store. -It requires that the "prefix" parameter be specified. Note that the watch +It requires that the "prefix" parameter be specified. This watch returns *all* keys matching the prefix whenever *any* key matching the prefix changes.