[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/03478370 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/03478370 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/03478370 Branch: refs/heads/CURATOR-215 Commit: 034783706ecea85934cc00c0d2f8fb8737e46886 Parents: f37580e Author: Ioannis Canellos <[email protected]> Authored: Tue Nov 11 12:28:10 2014 +0200 Committer: Ioannis Canellos <[email protected]> Committed: Tue Nov 11 12:28:10 2014 +0200 ---------------------------------------------------------------------- .../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/03478370/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()); } }
