[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Manik Surtani
msurtani at jboss.com
Tue Jan 30 17:23:50 EST 2007
User: msurtani
Date: 07/01/30 17:23:50
Modified: src/org/jboss/cache/interceptors Tag:
Branch_JBossCache_1_4_0
OptimisticValidatorInterceptor.java
Log:
JBCACHE-953
Revision Changes Path
No revision
No revision
1.25.2.12 +4 -1 JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: OptimisticValidatorInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java,v
retrieving revision 1.25.2.11
retrieving revision 1.25.2.12
diff -u -b -r1.25.2.11 -r1.25.2.12
--- OptimisticValidatorInterceptor.java 11 Dec 2006 17:29:44 -0000 1.25.2.11
+++ OptimisticValidatorInterceptor.java 30 Jan 2007 22:23:50 -0000 1.25.2.12
@@ -221,7 +221,10 @@
if (wrappedNode.isVersioningImplicit())
{
if (trace) log.trace("Versioning is implicit; incrementing.");
+ if (wrappedNode.getVersion() instanceof DefaultDataVersion)
current.setVersion(((DefaultDataVersion)wrappedNode.getVersion()).increment());
+ else
+ log.debug("Even though no explicit version was passed in, node has an external DataVersion impl. Don't know how to increment, not incrementing.");
}
else
{
More information about the jboss-cvs-commits
mailing list