Mmuzaf commented on a change in pull request #8767:
URL: https://github.com/apache/ignite/pull/8767#discussion_r591750597
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/CacheDataRowAdapter.java
##########
@@ -160,6 +166,61 @@ public final void initFromLink(
doInitFromLink(link, sharedCtx, coctx, pageMem, grpId, statHolder,
readCacheId, rowData, null, skipVer);
}
+ /**
+ * @param io Data page IO.
+ * @param itemId Row item Id.
+ * @throws IgniteCheckedException If failed.
+ */
+ public final void initFromPageBuffer(
+ GridCacheSharedContext<?, ?> sctx,
+ CacheObjectContext coctx,
+ IgniteThrowableFunction<Long, ByteBuffer> reader,
+ ByteBuffer pageBuff,
+ DataPageIO io,
+ int itemId,
+ boolean readCacheId,
+ RowData rowData,
+ boolean skipVer
+ ) throws IgniteCheckedException {
+ long pageAddr = GridUnsafe.bufferAddress(pageBuff);
+
+ IncompleteObject<?> incomplete = readIncomplete(null, sctx, coctx,
pageBuff.capacity(), pageBuff.capacity(),
+ pageAddr, itemId, io, rowData, readCacheId, skipVer);
+
+ if (incomplete == null)
+ return;
+
+ long nextLink = incomplete.getNextLink();
+
+ if (nextLink == 0)
+ return;
+
+ do {
+ long pageId = pageId(nextLink);
+
+ try {
Review comment:
Fixed.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]