nizhikov commented on code in PR #12081: URL: https://github.com/apache/ignite/pull/12081#discussion_r2135570304
########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/filename/FileTreeUtils.java: ########## @@ -100,4 +116,13 @@ private static void createAndCheck(File dir, String desc, IgniteLogger log) thro "Current persistence store directory is: [" + dir.getAbsolutePath() + "]"); } } + + /** + * @param storages Storages to select from. + * @param part Partition. + * @return Storage for partition. + */ + static <T> T resolveStorage(T[] storages, int part) { + return storages[(part + 1) % storages.length]; Review Comment: You are correct. We can safely remove + 1. -- 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