belliottsmith commented on code in PR #113:
URL: https://github.com/apache/cassandra-accord/pull/113#discussion_r1746052197


##########
accord-core/src/main/java/accord/local/SaveStatus.java:
##########
@@ -91,52 +88,51 @@ public enum SaveStatus
      */
     public enum LocalExecution
     {
-        NotReady(Nothing),
-        ReadyToExclude(ExecuteAtOnly),
-        WaitingToExecute(Decision),
-        ReadyToExecute(Decision),
-        // TODO (expected): we seem to be able to await this when we know 
there are still local execution dependencies
-        //   we should only request this when we know the transaction can 
execute locally
-        WaitingToApply(Apply),
-        Applying(Apply),
-        Applied(Apply),
-        CleaningUp(Nothing);
-
-        public final Known requires;
-
-        LocalExecution(Known requires)
-        {
-            this.requires = requires;
-        }
-
-        public boolean isSatisfiedBy(Known known)
-        {
-            return requires.isSatisfiedBy(known);
-        }
-
-        public long fetchEpoch(TxnId txnId, Timestamp timestamp)
-        {
-            if (timestamp == null || timestamp.equals(Timestamp.NONE))
-                return txnId.epoch();
-
-            switch (this)
-            {
-                default: throw new AssertionError("Unexpected status: " + 
this);
-                case NotReady:
-                case ReadyToExclude:
-                case ReadyToExecute:
-                case WaitingToExecute:
-                    return txnId.epoch();
-
-                case WaitingToApply:
-                case Applying:
-                case Applied:
-                case CleaningUp:
-                    return timestamp.epoch();
-            }
-        }
+        /**
+         * Still coordinating a decision
+         */
+        NotReady,
+
+        /**
+         * An executeAt decision has been made, but the dependencies are not 
known
+         */
+        ReadyToExclude,

Review Comment:
   the transaction as an execution dependency of another transaction
   
   i.e., some transaction is waiting on it to execute, and the first step is 
deciding if it even executes first



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to