nizhikovprivate commented on code in PR #12133: URL: https://github.com/apache/ignite/pull/12133#discussion_r2150093022
########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/filename/NodeFileTree.java: ########## @@ -640,19 +656,35 @@ public File tmpCacheConfigurationFile(CacheConfiguration<?, ?> ccfg) { * @return Partition file. */ public File partitionFile(CacheConfiguration<?, ?> ccfg, int part) { - return new File(resolveStorage(cacheStorages(ccfg), part), partitionFileName(part)); + if (part == INDEX_PARTITION) { + String idxPath = ccfg.getIndexPath(); + + if (!F.isEmpty(idxPath)) + return new File(cacheStorage(idxPath, cacheDirName(ccfg)), partitionFileName(INDEX_PARTITION)); + } + + return new File(resolveStorage(cacheStorages(ccfg, false), part), partitionFileName(part)); Review Comment: First name of `resolveStorage` was `oneOf` as it don't relates to storage itself, but just selects one element from array. -- 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