This is an automated email from the ASF dual-hosted git repository.

ibessonov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new d7441f2c88e IGNITE-27110 Remove unused method and parameter (#7020)
d7441f2c88e is described below

commit d7441f2c88ee3ff10a8ad0c1c753906c2243767a
Author: Ivan Bessonov <[email protected]>
AuthorDate: Thu Nov 20 11:50:22 2025 +0300

    IGNITE-27110 Remove unused method and parameter (#7020)
---
 .../persistence/PersistentPageMemory.java          | 28 ----------------------
 1 file changed, 28 deletions(-)

diff --git 
a/modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/PersistentPageMemory.java
 
b/modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/PersistentPageMemory.java
index 2c1d0e637a4..4975e218ba6 100644
--- 
a/modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/PersistentPageMemory.java
+++ 
b/modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/PersistentPageMemory.java
@@ -73,7 +73,6 @@ import java.util.List;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ThreadLocalRandom;
-import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;
@@ -638,20 +637,6 @@ public class PersistentPageMemory implements PageMemory {
         return acquirePage(grpId, pageId, false);
     }
 
-    /**
-     * Returns an absolute pointer to a page, associated with the given page 
ID.
-     *
-     * @param grpId Group ID.
-     * @param pageId Page ID.
-     * @param pageAllocated Flag is set if new page was allocated in offheap 
memory.
-     * @return Page.
-     * @throws IgniteInternalCheckedException If failed.
-     * @see #acquirePage(int, long) Sets additional flag indicating that page 
was not found in memory and had to be allocated.
-     */
-    public long acquirePage(int grpId, long pageId, AtomicBoolean 
pageAllocated) throws IgniteInternalCheckedException {
-        return acquirePage(grpId, pageId, false, pageAllocated);
-    }
-
     /**
      * Returns an absolute pointer to a page, associated with the given page 
ID.
      *
@@ -663,15 +648,6 @@ public class PersistentPageMemory implements PageMemory {
      * @see #acquirePage(int, long) Will read page from file if it is not 
present in memory.
      */
     public long acquirePage(int grpId, long pageId, boolean restore) throws 
IgniteInternalCheckedException {
-        return acquirePage(grpId, pageId, restore, null);
-    }
-
-    private long acquirePage(
-            int grpId,
-            long pageId,
-            boolean restore,
-            @Nullable AtomicBoolean pageAllocated
-    ) throws IgniteInternalCheckedException {
         assert started : "grpId=" + grpId + ", pageId=" + hexLong(pageId);
         assert pageIndex(pageId) != 0 : String.format(
                 "Partition meta should should not be read through PageMemory 
so as not to occupy memory: [grpId=%s, pageId=%s]",
@@ -729,10 +705,6 @@ public class PersistentPageMemory implements PageMemory {
             if (relPtr == INVALID_REL_PTR) {
                 relPtr = seg.borrowOrAllocateFreePage(pageId);
 
-                if (pageAllocated != null) {
-                    pageAllocated.set(true);
-                }
-
                 if (relPtr == INVALID_REL_PTR) {
                     relPtr = seg.removePageForReplacement();
                 }

Reply via email to