ARTEMIS-2187 remove page from softcache before consumedpage

This commit is contained in:
yang wei 2018-11-29 11:24:45 +08:00 committed by Clebert Suconic
parent a04f8053b4
commit 5ea72022a1
1 changed files with 1 additions and 2 deletions

View File

@ -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());