You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2018/01/02 16:03:54 UTC

[2/7] curator git commit: I believe the operation needs to be removed/added back to the delay queue to get restorting to occur. I'm concerned however, about altering operation ordering

I believe the operation needs to be removed/added back to the delay queue to get restorting to occur. I'm concerned however, about altering operation ordering


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

Branch: refs/heads/master
Commit: c49f037ce87ce527bc244a94b4d2d1160c9ef012
Parents: bfdb790
Author: randgalt <ra...@apache.org>
Authored: Tue Nov 21 18:34:45 2017 -0800
Committer: randgalt <ra...@apache.org>
Committed: Tue Nov 21 18:34:45 2017 -0800

----------------------------------------------------------------------
 .../org/apache/curator/framework/imps/CuratorFrameworkImpl.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/c49f037c/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
index 4a5fad3..c91758a 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
@@ -1001,6 +1001,10 @@ public class CuratorFrameworkImpl implements CuratorFramework
         for ( OperationAndData<?> operation : drain )
         {
             operation.clearSleep();
+            if ( backgroundOperations.remove(operation) )
+            {
+                backgroundOperations.offer(operation);
+            }
         }
     }