[ 
https://issues.apache.org/jira/browse/ARTEMIS-3850?focusedWorklogId=781175&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-781175
 ]

ASF GitHub Bot logged work on ARTEMIS-3850:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Jun/22 13:19
            Start Date: 14/Jun/22 13:19
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #4101:
URL: https://github.com/apache/activemq-artemis/pull/4101#discussion_r896808799


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java:
##########
@@ -673,15 +738,24 @@ public Page removePage(int pageId) {
                return null;
             }
 
-            Page page = createPage(pageId);
+            Page page = usePage(pageId);
 
-            if (page.getFile().exists()) {
+            if (page != null && page.getFile().exists()) {
+               page.usageDown();

Review Comment:
   it will remove from usedPages if the counter is == 0. The idea was usePage 
will add the counter, and usageDown would then make it back to 0.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 781175)
    Time Spent: 8h 20m  (was: 8h 10m)

> Add Option to read messages into paging based on sizing and eliminate caching
> -----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3850
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3850
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>    Affects Versions: 2.22.0
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.24.0
>
>          Time Spent: 8h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to