Author: manik.surtani(a)jboss.com
Date: 2008-04-02 06:31:43 -0400 (Wed, 02 Apr 2008)
New Revision: 5494
Modified:
core/branches/2.1.X/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/branches/2.1.X/src/main/java/org/jboss/cache/interceptors/OptimisticInterceptor.java
===================================================================
---
core/branches/2.1.X/src/main/java/org/jboss/cache/interceptors/OptimisticInterceptor.java 2008-04-02
10:30:14 UTC (rev 5493)
+++
core/branches/2.1.X/src/main/java/org/jboss/cache/interceptors/OptimisticInterceptor.java 2008-04-02
10:31:43 UTC (rev 5494)
@@ -109,7 +109,7 @@
boolean locked = false;
try
{
- locked = node.getLock().acquireWriteLock(gtx, timeout);
+ locked = node.getLock().acquireReadLock(gtx, timeout);
}
catch (InterruptedException e)
{