Phillippko commented on code in PR #6343:
URL: https://github.com/apache/ignite-3/pull/6343#discussion_r2284824188
##########
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/store/FilePageStore.java:
##########
@@ -191,9 +221,16 @@ public void read(long pageId, ByteBuffer pageBuf, boolean
keepCrc) throws Ignite
@Override
public void write(long pageId, ByteBuffer pageBuf) throws
IgniteInternalCheckedException {
- assert pageIndex(pageId) <= pageCount : "pageIdx=" + pageIndex(pageId)
+ ", pageCount=" + pageCount;
+ int pageIndex = pageIndex(pageId);
+
+ assert pageIndex <= pageCount : "pageIdx=" + pageIndex + ",
pageCount=" + pageCount;
filePageStoreIo.write(pageId, pageBuf);
+
+ // Indexes start from 0.
+ if (pageIndex >= persistedPageCount) {
+ persistedPageCount = pageIndex + 1;
+ }
Review Comment:
Discussed in DM, fixed. Taking this info from partition meta snapshot
--
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]