Author: clebert.suconic(a)jboss.com
Date: 2010-11-16 17:04:41 -0500 (Tue, 16 Nov 2010)
New Revision: 9898
Modified:
branches/Branch_New_Paging_preMerge/src/main/org/hornetq/core/paging/cursor/impl/PageCursorProviderImpl.java
Log:
improvement on paging / soft cache
Modified:
branches/Branch_New_Paging_preMerge/src/main/org/hornetq/core/paging/cursor/impl/PageCursorProviderImpl.java
===================================================================
---
branches/Branch_New_Paging_preMerge/src/main/org/hornetq/core/paging/cursor/impl/PageCursorProviderImpl.java 2010-11-16
21:23:38 UTC (rev 9897)
+++
branches/Branch_New_Paging_preMerge/src/main/org/hornetq/core/paging/cursor/impl/PageCursorProviderImpl.java 2010-11-16
22:04:41 UTC (rev 9898)
@@ -338,6 +338,10 @@
for (Page depagedPage : depagedPages)
{
depagedPage.delete();
+ synchronized (softCache)
+ {
+ softCache.remove((long)depagedPage.getPageId());
+ }
}
}
catch (Exception ex)