From 1bac7065936c10f8f51486216cf7c788a485ae0e 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 d02e92eb8..d4f107c9b 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 cdc00dc606311e9ec8dd5783cada6ffe7da454cc 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 d4f107c9b..6877b57b4 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.