ibessonov commented on code in PR #3610:
URL: https://github.com/apache/ignite-3/pull/3610#discussion_r1606502187
##########
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/datastructure/DataStructure.java:
##########
@@ -183,6 +187,20 @@ protected final long allocatePage(@Nullable ReuseBag bag,
boolean useRecycled) t
return pageId;
}
+ /**
+ * Replaces the "partition ID" part of the given page ID with the
partition ID that his data structure is responsible for.
+ *
+ * @param pageId Original page ID.
+ * @return Page ID with replaced partition ID.
+ */
+ private long replacePartitionId(long pageId) {
+ long partitionIdZeroMask = ~(PageIdUtils.PART_ID_MASK <<
PageIdUtils.PAGE_IDX_SIZE);
+
+ long partitionIdMask = ((long) partId) << PageIdUtils.PAGE_IDX_SIZE;
Review Comment:
You may ignore this comment. What you store in this variable is not
technically a mask, it's just a value
--
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]