belliottsmith commented on code in PR #6:
URL: https://github.com/apache/cassandra-accord/pull/6#discussion_r937230450
##########
accord-core/src/main/java/accord/local/CommandStores.java:
##########
@@ -208,10 +207,10 @@ KeyRanges currentRanges()
static long keyIndex(Key key, long numShards)
{
- return Integer.toUnsignedLong(key.keyHash()) % numShards;
+ return Integer.toUnsignedLong(key.routingHash()) % numShards;
}
- private static long addKeyIndex(Key key, long numShards, long
accumulate)
+ private static long addKeyIndex(int i, Key key, long numShards, long
accumulate)
Review Comment:
I think it's probably to permit its use as a method handle
--
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]