ascherbakoff commented on code in PR #7799:
URL: https://github.com/apache/ignite-3/pull/7799#discussion_r3055648131
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/TransactionIds.java:
##########
@@ -86,4 +86,12 @@ private static long combine(int nodeId, TxPriority priority)
{
// Shift the int 32 bits and combine with the boolean
return ((long) nodeId << 32) | priorityAsInt;
}
+
+ public static int hash(UUID txId, int divisor) {
+ return Math.floorMod(spread(txId.hashCode()), divisor);
Review Comment:
🆗
--
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]