You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by be...@apache.org on 2024/10/08 08:40:07 UTC
(cassandra) branch cep-15-accord updated: reorder journal fields so we can easily index on route (when present)
This is an automated email from the ASF dual-hosted git repository.
benedict pushed a commit to branch cep-15-accord
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cep-15-accord by this push:
new a5f4f787c6 reorder journal fields so we can easily index on route (when present)
a5f4f787c6 is described below
commit a5f4f787c6c5f590f5745e53629d0177b9e3c1b6
Author: Benedict Elliott Smith <be...@apache.org>
AuthorDate: Tue Oct 8 09:39:58 2024 +0100
reorder journal fields so we can easily index on route (when present)
---
.../apache/cassandra/service/accord/AccordCommandStore.java | 1 -
src/java/org/apache/cassandra/service/accord/SavedCommand.java | 10 +++++-----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/java/org/apache/cassandra/service/accord/AccordCommandStore.java b/src/java/org/apache/cassandra/service/accord/AccordCommandStore.java
index 91e4030d5d..022f58556b 100644
--- a/src/java/org/apache/cassandra/service/accord/AccordCommandStore.java
+++ b/src/java/org/apache/cassandra/service/accord/AccordCommandStore.java
@@ -309,7 +309,6 @@ public class AccordCommandStore extends CommandStore
journal.persistStoreState(id, fieldUpdates, onFlush);
}
-
@Nullable
@VisibleForTesting
public void appendToLog(Command before, Command after, Runnable onFlush)
diff --git a/src/java/org/apache/cassandra/service/accord/SavedCommand.java b/src/java/org/apache/cassandra/service/accord/SavedCommand.java
index a0cd86bb5b..4106990a21 100644
--- a/src/java/org/apache/cassandra/service/accord/SavedCommand.java
+++ b/src/java/org/apache/cassandra/service/accord/SavedCommand.java
@@ -63,18 +63,18 @@ public class SavedCommand
// This enum is order-dependent
public enum Fields
{
+ PARTICIPANTS, // stored first so we can index it
+ SAVE_STATUS,
+ PARTIAL_DEPS,
EXECUTE_AT,
EXECUTES_AT_LEAST,
- SAVE_STATUS,
DURABILITY,
ACCEPTED,
PROMISED,
- PARTICIPANTS,
- PARTIAL_TXN,
- PARTIAL_DEPS,
WAITING_ON,
+ PARTIAL_TXN,
WRITES,
- CLEANUP
+ CLEANUP,
;
public static final Fields[] FIELDS = values();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org