rpuch commented on code in PR #6661:
URL: https://github.com/apache/ignite-3/pull/6661#discussion_r2391056464
##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/storage/segstore/IndexFileManager.java:
##########
@@ -119,10 +138,54 @@ IndexFile saveIndexMemtable(ReadModeIndexMemTable
indexMemTable) throws IOExcept
}
}
- return new IndexFile(fileName, path);
+ curFileIndex++;
+
+ return syncAndRename(tmpFilePath,
tmpFilePath.resolveSibling(fileName));
}
- private static byte[] header(ReadModeIndexMemTable indexMemTable) {
+ /**
+ * Returns a pointer into a segment file that contains the entry for the
given group's index or {@code null} if no such entry exists.
Review Comment:
Yes, please
--
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]