Author: manik.surtani(a)jboss.com
Date: 2008-06-27 08:17:04 -0400 (Fri, 27 Jun 2008)
New Revision: 6090
Modified:
core/trunk/src/main/java/org/jboss/cache/commands/write/EvictCommand.java
Log:
Eviction needs to look at tombstones as well.
Modified: core/trunk/src/main/java/org/jboss/cache/commands/write/EvictCommand.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/commands/write/EvictCommand.java 2008-06-27
12:08:41 UTC (rev 6089)
+++ core/trunk/src/main/java/org/jboss/cache/commands/write/EvictCommand.java 2008-06-27
12:17:04 UTC (rev 6090)
@@ -50,7 +50,9 @@
*/
public Object perform(InvocationContext ctx)
{
- NodeSPI node = ctx.lookUpNode(fqn);
+ //NodeSPI node = ctx.lookUpNode(fqn);
+ // TODO: MVCC - eviction actually needs to look at invalid nodes (tombstones) as
well.
+ NodeSPI node = dataContainer.peek(fqn, false, true);
if (node == null)
{
return false;