[CURATOR-160] Fix watcher support in GetConfigBuilderImpl.
Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/0e876c84 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/0e876c84 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/0e876c84 Branch: refs/heads/CURATOR-215 Commit: 0e876c842cb0cb357997b2e914d627bebc78130b Parents: b00cecf Author: Ioannis Canellos <ioca...@gmail.com> Authored: Tue Nov 11 12:28:10 2014 +0200 Committer: Scott Blum <dragonsi...@apache.org> Committed: Wed Aug 12 17:08:33 2015 -0400 ---------------------------------------------------------------------- .../org/apache/curator/framework/imps/GetConfigBuilderImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/0e876c84/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilderImpl.java ---------------------------------------------------------------------- diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilderImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilderImpl.java index 54b1862..59a621a 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilderImpl.java +++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilderImpl.java @@ -158,11 +158,11 @@ public class GetConfigBuilderImpl implements GetConfigBuilder, BackgroundOperati }; if ( watching.isWatched() ) { - client.getZooKeeper().getConfig(watching.getWatcher(), callback, backgrounding.getContext()); + client.getZooKeeper().getConfig(false, callback, backgrounding.getContext()); } else { - client.getZooKeeper().getConfig(false, callback, backgrounding.getContext()); + client.getZooKeeper().getConfig(watching.getWatcher(), callback, backgrounding.getContext()); } }