[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Manik Surtani
msurtani at jboss.com
Wed Jan 10 12:47:23 EST 2007
User: msurtani
Date: 07/01/10 12:47:23
Modified: src/org/jboss/cache/interceptors
PessimisticLockInterceptor.java
Log:
JBCACHE-629
Revision Changes Path
1.43 +4 -1 JBossCache/src/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PessimisticLockInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/PessimisticLockInterceptor.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- PessimisticLockInterceptor.java 4 Jan 2007 05:35:37 -0000 1.42
+++ PessimisticLockInterceptor.java 10 Jan 2007 17:47:23 -0000 1.43
@@ -36,7 +36,7 @@
* current method and unlock when the method returns.
*
* @author Bela Ban
- * @version $Id: PessimisticLockInterceptor.java,v 1.42 2007/01/04 05:35:37 msurtani Exp $
+ * @version $Id: PessimisticLockInterceptor.java,v 1.43 2007/01/10 17:47:23 msurtani Exp $
*/
public class PessimisticLockInterceptor extends Interceptor
{
@@ -360,6 +360,9 @@
private boolean writeLockNeeded(NodeLock.LockType lock_type, int currentNodeIndex, int treeNodeSize, boolean isRemoveOperation, boolean createIfNotExists, Fqn targetFqn, Fqn currentFqn)
{
+ // write lock forced!!
+ if (cache.getInvocationContext().getOptionOverrides().isForceWriteLock()) return true;
+
if (isRemoveOperation && currentNodeIndex == treeNodeSize - 2)
{
return true;// we're doing a remove and we've reached the PARENT node of the target to be removed.
More information about the jboss-cvs-commits
mailing list