belliottsmith commented on code in PR #109:
URL: https://github.com/apache/cassandra-accord/pull/109#discussion_r1709414835
##########
accord-core/src/main/java/accord/coordinate/Invalidate.java:
##########
@@ -148,66 +148,82 @@ private void invalidate()
Invariants.checkState(!isPrepareDone);
isPrepareDone = true;
- // first look to see if it has already been
+ FullRoute<?> fullRoute = InvalidateReply.findRoute(replies);
+ Route<?> someRoute = InvalidateReply.mergeRoutes(replies);
+
+ // first look to see if it has already been decided/invalidated
+ // check each shard independently - if we find any that can be
invalidated, do so
+ InvalidateReply max = InvalidateReply.max(replies);
+ InvalidateReply maxNotTruncated = max;
+ if (max.status == Status.Truncated)
+ maxNotTruncated = InvalidateReply.maxNotTruncated(replies);
+
+ switch (maxNotTruncated.status)
Review Comment:
yep, good catch
--
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]