Author: manik.surtani(a)jboss.com
Date: 2008-04-02 06:30:14 -0400 (Wed, 02 Apr 2008)
New Revision: 5493
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticInterceptor.java
Log:
JBCACHE-1309 - we should be getting READ locks when adding nodes to a workspace, not WRITE
locks.
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticInterceptor.java 2008-04-02
10:20:24 UTC (rev 5492)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticInterceptor.java 2008-04-02
10:30:14 UTC (rev 5493)
@@ -109,7 +109,7 @@
boolean locked = false;
try
{
- locked = node.getLock().acquireWriteLock(gtx, timeout);
+ locked = node.getLock().acquireReadLock(gtx, timeout);
}
catch (InterruptedException e)
{