[jbosscache-commits] JBoss Cache SVN: r6367 - core/trunk/src/main/java/org/jboss/cache.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Tue Jul 22 20:52:12 EDT 2008
Author: manik.surtani at jboss.com
Date: 2008-07-22 20:52:12 -0400 (Tue, 22 Jul 2008)
New Revision: 6367
Modified:
core/trunk/src/main/java/org/jboss/cache/PessimisticUnversionedNode.java
Log:
null-safe
Modified: core/trunk/src/main/java/org/jboss/cache/PessimisticUnversionedNode.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/PessimisticUnversionedNode.java 2008-07-23 00:07:27 UTC (rev 6366)
+++ core/trunk/src/main/java/org/jboss/cache/PessimisticUnversionedNode.java 2008-07-23 00:52:12 UTC (rev 6367)
@@ -27,7 +27,7 @@
public PessimisticUnversionedNode(Object name, Fqn fqn, Map<K, V> data, CacheSPI<K, V> cache)
{
- super(fqn, cache, cache.getConfiguration().isLockParentForChildInsertRemove());
+ super(fqn, cache, false);
if (!fqn.isRoot() && !name.equals(fqn.getLastElement()))
throw new IllegalArgumentException("Child " + name + " must be last part of " + fqn);
@@ -36,6 +36,8 @@
setInternalState(data);
else
this.data = new HashMap<K, V>();
+
+ setLockForChildInsertRemove(cache != null && cache.getConfiguration() != null && cache.getConfiguration().isLockParentForChildInsertRemove());
}
// ------ lock-per-node paradigm
More information about the jbosscache-commits
mailing list