Repository: curator Updated Branches: refs/heads/CURATOR-170 f95b90a4e -> 3eea67600
have removePath() remove success/failure Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/3eea6760 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/3eea6760 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/3eea6760 Branch: refs/heads/CURATOR-170 Commit: 3eea676005e1121d44b9ec0e911d6959ac382f8a Parents: f95b90a Author: randgalt <[email protected]> Authored: Wed Dec 10 09:43:23 2014 -0500 Committer: randgalt <[email protected]> Committed: Wed Dec 10 09:43:23 2014 -0500 ---------------------------------------------------------------------- .../org/apache/curator/framework/recipes/locks/ChildReaper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/3eea6760/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java ---------------------------------------------------------------------- diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java index ae2fc91..6e0a7e4 100644 --- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java +++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java @@ -166,10 +166,11 @@ public class ChildReaper implements Closeable * Remove a path from reaping * * @param path the path + * @return true if the path existed and was removed */ - public void removePath(String path) + public boolean removePath(String path) { - paths.remove(PathUtils.validatePath(path)); + return paths.remove(PathUtils.validatePath(path)); } private static ScheduledExecutorService newExecutorService()
