This is an automated email from the ASF dual-hosted git repository.

dcapwell pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 8c7a3c9e CEP-15 (C*): when loading commands that have empty 
waiting_on, make sure not to loose the partial deps (#61)
8c7a3c9e is described below

commit 8c7a3c9ef4209d635b186189e17a2d9e728e9871
Author: dcapwell <[email protected]>
AuthorDate: Mon Aug 21 13:30:49 2023 -0700

    CEP-15 (C*): when loading commands that have empty waiting_on, make sure 
not to loose the partial deps (#61)
    
    
    patch by David Capwell; reviewed by Aleksey Yeschenko for CASSANDRA-18783
---
 accord-core/src/main/java/accord/local/Command.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/accord-core/src/main/java/accord/local/Command.java 
b/accord-core/src/main/java/accord/local/Command.java
index dfad5f68..47f9caba 100644
--- a/accord-core/src/main/java/accord/local/Command.java
+++ b/accord-core/src/main/java/accord/local/Command.java
@@ -978,6 +978,12 @@ public abstract class Command implements CommonAttributes
             this.appliedOrInvalidated = appliedOrInvalidated;
         }
 
+        public static WaitingOn none(Deps deps)
+        {
+            ImmutableBitSet empty = new ImmutableBitSet(deps.txnIdCount());
+            return new WaitingOn(deps, empty, empty, empty);
+        }
+
         public boolean isWaitingOnCommit()
         {
             return !waitingOnCommit.isEmpty();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to