tkalkirill commented on code in PR #1673:
URL: https://github.com/apache/ignite-3/pull/1673#discussion_r1109518133
##########
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/util/PageIdUtils.java:
##########
@@ -182,6 +182,15 @@ public static int partitionId(long pageId) {
return (int) ((pageId >>> PAGE_IDX_SIZE) & PART_ID_MASK);
}
+ /**
+ * Extracts partition ID from the page link.
+ *
+ * @param link Page link.
+ */
+ public static int partitionIdFromLink(long link) {
+ return partitionId(pageId(link));
Review Comment:
I didn’t quite understand you, I just put the code in a common place.
--
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]