Vladsz83 commented on a change in pull request #9269:
URL: https://github.com/apache/ignite/pull/9269#discussion_r687862310



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java
##########
@@ -1438,9 +1439,11 @@ public StandaloneGridKernalContext 
createStandaloneKernalContext(String snpName,
         File snpPart = getPartitionFile(new File(snapshotLocalDir(snpName), 
databaseRelativePath(folderName)),
             grps.get(0).getName(), partId);
 
-        FilePageStore pageStore = (FilePageStore)storeFactory
-            .apply(CU.cacheId(grpName), false)
-            .createPageStore(getTypeByPartId(partId),
+        int grpId = CU.cacheId(grpName);
+
+        FilePageStore pageStore = 
(FilePageStore)storeMgr.getPageStoreFactory(grpId,
+            cctx.kernalContext().encryption().getActiveKey(grpId) != null).

Review comment:
       Fixed




-- 
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]


Reply via email to