diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java index 93869d7c81..5ca95681e4 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java @@ -473,11 +473,10 @@ public class PageCursorProviderImpl implements PageCursorProvider { } depagedPage.delete(pgdMessages); - onDeletePage(depagedPage); - synchronized (softCache) { softCache.remove((long) depagedPage.getPageId()); } + onDeletePage(depagedPage); } } catch (Exception ex) { ActiveMQServerLogger.LOGGER.problemCleaningPageAddress(ex, pagingStore.getAddress());