nizhikovprivate commented on code in PR #12091: URL: https://github.com/apache/ignite/pull/12091#discussion_r2106911983
########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/filename/NodeFileTree.java: ########## @@ -879,6 +903,51 @@ public static int typeId(String fileName) { return Integer.parseInt(fileName.substring(0, fileName.length() - FILE_SUFFIX.length())); } + /** + * @param stateDir State directory. + * @param isTmp {@code True} if the temporary file. + * @return WAL state file path. + */ + public static Path walStateFilePath(Path stateDir, boolean isTmp) { Review Comment: This and all the new methods below must NOT be static. ``` private File cdcState() { return new File(walCdc(), CDC_STATE_DIR); } public Path cdcWalState() { Path.resolve(cdcState().toPath(), WAL_STATE_FILE_NAME); } public Path tmpCdcWalState() { Path.resolve(cdcState(), WAL_STATE_FILE_NAME + TMP_SUFFIX); } -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org