curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: more doc
Date Sun, 23 Feb 2014 12:44:42 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-88 9e041c771 -> 141fc9813


more doc


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/141fc981
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/141fc981
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/141fc981

Branch: refs/heads/CURATOR-88
Commit: 141fc9813afa8beaece441b68b90ba507def4ae4
Parents: 9e041c7
Author: randgalt <randgalt@apache.org>
Authored: Sun Feb 23 18:14:36 2014 +0530
Committer: randgalt <randgalt@apache.org>
Committed: Sun Feb 23 18:14:36 2014 +0530

----------------------------------------------------------------------
 curator-x-rest/src/site/confluence/client.confluence | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/141fc981/curator-x-rest/src/site/confluence/client.confluence
----------------------------------------------------------------------
diff --git a/curator-x-rest/src/site/confluence/client.confluence b/curator-x-rest/src/site/confluence/client.confluence
index ce99b72..53c16c1 100644
--- a/curator-x-rest/src/site/confluence/client.confluence
+++ b/curator-x-rest/src/site/confluence/client.confluence
@@ -44,9 +44,11 @@ Address address = ... # host and port of the Curator REST Proxy instance
 LockSpec lock = {path: "/lock/path", maxWaitMs: 5000}
 IdSpec lockId = restClient.post(address, "/curator/v1/recipes/lock", lock)
 statusMaintainer.add(address, lockId)
+
     ... do work here while in the acquired mutex ...
-restClient.delete(address, "/curator/v1/recipes/lock/" + lockId.id)
+    
 statusMaintainer.remove(address, lockId)
+restClient.delete(address, "/curator/v1/recipes/lock/" + lockId.id)
 {code}
 
 The statusMaintainer mechanism should iterate over any records it has and call the status
API peridocially:


Mime
View raw message