belliottsmith commented on code in PR #38:
URL: https://github.com/apache/cassandra-accord/pull/38#discussion_r1152974290
##########
accord-core/src/main/java/accord/coordinate/CheckShards.java:
##########
@@ -61,7 +61,8 @@ private static Topologies topologyFor(Node node, TxnId txnId,
Unseekables<?, ?>
protected void contact(Id id)
{
Unseekables<?, ?> unseekables =
contact.slice(topologies().computeRangesForNode(id));
- node.send(id, new CheckStatus(txnId, unseekables, txnId.epoch(),
untilRemoteEpoch, includeInfo), this);
+ node.send(id, new CheckStatus(txnId, unseekables, txnId.epoch(),
untilRemoteEpoch, includeInfo),
+ node.commandStores().from(unseekables), this);
Review Comment:
Shouldn't we already know the `CommandStore` - it should be the one we're
executing on ourselves?
Perhaps we should introduce a static method for discovering the
`CommandStore` we're executing on currently, and store it in a `ThreadLocal`
(or `FastThreadLocal`)
--
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]