This is an automated email from the ASF dual-hosted git repository. benedict pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
commit 83ab6b89c5ac7cb8c32b73bfecc0d436b93b38d1 Author: Benedict Elliott Smith <[email protected]> AuthorDate: Fri Nov 15 10:20:34 2024 +0000 various fixes --- .../src/main/java/accord/impl/InMemoryCommandStore.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/accord-core/src/main/java/accord/impl/InMemoryCommandStore.java b/accord-core/src/main/java/accord/impl/InMemoryCommandStore.java index eb827e5b..ee5343d4 100644 --- a/accord-core/src/main/java/accord/impl/InMemoryCommandStore.java +++ b/accord-core/src/main/java/accord/impl/InMemoryCommandStore.java @@ -837,24 +837,17 @@ public abstract class InMemoryCommandStore extends CommandStore { private final TxnId txnId; private final Timestamp executeAt; - private final Status status; - private final List<TxnId> deps; - public TxnInfo(TxnId txnId, Timestamp executeAt, Status status, List<TxnId> deps) + public TxnInfo(TxnId txnId, Timestamp executeAt) { this.txnId = txnId; this.executeAt = executeAt; - this.status = status; - this.deps = deps; } public TxnInfo(Command command) { this.txnId = command.txnId(); this.executeAt = command.executeAt(); - this.status = command.status(); - PartialDeps deps = command.partialDeps(); - this.deps = deps != null ? deps.txnIds() : Collections.emptyList(); } } @@ -987,13 +980,11 @@ public abstract class InMemoryCommandStore extends CommandStore if (global != null && global.value() != null) { Command command = global.value(); - PartialDeps deps = command.partialDeps(); - List<TxnId> depsIds = deps != null ? deps.txnIds() : Collections.emptyList(); - list.add(new TxnInfo(txnId, txnId, command.status(), depsIds)); + list.add(new TxnInfo(command)); } else { - list.add(new TxnInfo(txnId, txnId, NotDefined, Collections.emptyList())); + list.add(new TxnInfo(txnId, txnId)); } } return in; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
