gemmellr commented on code in PR #4101:
URL: https://github.com/apache/activemq-artemis/pull/4101#discussion_r896888056


##########
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:
   ..and if it isnt ==0? Its incremented every time through usePage() 
regardless whether it came from usedPages or not. It just seems odd it always 
does 'numberOfPages--' when it may not have decremented the use counter to 0.



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