Author: shawkins
Date: 2011-08-26 21:51:27 -0400 (Fri, 26 Aug 2011)
New Revision: 3429
Modified:
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCache.java
Log:
TEIID-1728 change to perform a removal of expired items
Modified:
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCache.java
===================================================================
---
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCache.java 2011-08-27
01:41:12 UTC (rev 3428)
+++
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCache.java 2011-08-27
01:51:27 UTC (rev 3429)
@@ -51,8 +51,11 @@
public V get(K key) {
Node<K, V> node = getRootNode();
Node child = node.getChild(getFqn(key));
- if (child != null && validateNode(child)) {
- return (V)child.get(key);
+ if (child != null) {
+ if (validateNode(child)) {
+ return (V)child.get(key);
+ }
+ remove(key);
}
return null;
}
Show replies by date