tkalkirill commented on code in PR #920:
URL: https://github.com/apache/ignite-3/pull/920#discussion_r921217997


##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/PersistentPageMemoryTableStorage.java:
##########
@@ -81,22 +80,36 @@ public void start() throws StorageException {
     protected PersistentPageMemoryPartitionStorage createPartitionStorage(int 
partId) throws StorageException {
         TableView tableView = tableCfg.value();
 
-        FilePageStore partitionFilePageStore = 
ensurePartitionFilePageStore(tableView, partId);
+        PartitionFilePageStore partitionFilePageStore = 
ensurePartitionFilePageStore(tableView, partId);
 
         CheckpointTimeoutLock checkpointTimeoutLock = 
dataRegion.checkpointManager().checkpointTimeoutLock();
 
         checkpointTimeoutLock.checkpointReadLock();
 
         try {
-            PartitionMeta partitionMeta = getOrCreatePartitionMeta(tableView, 
partId, partitionFilePageStore);
+            PersistentPageMemory persistentPageMemory = 
dataRegion.pageMemory();
 
-            TableFreeList tableFreeList = createTableFreeList(tableView, 
partId, partitionMeta);
+            int grpId = groupId(tableView);
+
+            PartitionMeta meta = partitionFilePageStore.meta();
+
+            if (meta.isCreated()) {

Review Comment:
   Fix it



##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/PersistentPageMemoryTableStorage.java:
##########
@@ -226,8 +169,8 @@ TableFreeList createTableFreeList(
                     partId,
                     dataRegion.pageMemory(),
                     PageLockListenerNoOp.INSTANCE,
-                    partitionMeta.reuseListRoot.pageId(),
-                    partitionMeta.allocated,
+                    partitionMeta.reuseListRootPageId(),
+                    partitionMeta.isCreated(),

Review Comment:
   Remove it



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