ifesdjeen commented on code in PR #265:
URL: https://github.com/apache/cassandra-accord/pull/265#discussion_r2626884482
##########
accord-core/src/main/java/accord/impl/AbstractReplayer.java:
##########
@@ -76,16 +80,10 @@ else if (command.saveStatus().compareTo(Applying) >= 0 &&
command.saveStatus().c
{
if (command.txnId().is(Write))
{
- CommandStore unsafeStore = safeStore.commandStore();
- Participants<?> executes =
command.participants().stillExecutes();
- command.writes()
- .apply(safeStore, executes, command.partialTxn())
- .invoke(() ->
unsafeStore.chain(PreLoadContext.contextFor(txnId, "Replay"), ss -> {
- Commands.postApply(ss, txnId, true);
- }))
- .begin(safeStore.agent());
+ Commands.applyChain(safeStore, command)
+ .begin(safeStore.agent());
}
- else Invariants.expect(command.hasBeen(Applied));
+ else Invariants.expect(command.hasBeen(Applied), "%s is
Applying but is not a Write transaction");
Review Comment:
nit: %s is not specified
--
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]