[infinispan-commits] Infinispan SVN: r1938 - trunk/server/hotrod/src/main/scala/org/infinispan/server/hotrod.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Wed Jun 30 12:51:20 EDT 2010
Author: galder.zamarreno at jboss.com
Date: 2010-06-30 12:51:19 -0400 (Wed, 30 Jun 2010)
New Revision: 1938
Modified:
trunk/server/hotrod/src/main/scala/org/infinispan/server/hotrod/Decoder10.scala
Log:
fixed remote lookup - it should happen if the FORCE_RETURN_VALUE flag is set to true (it was the other way around)
Modified: trunk/server/hotrod/src/main/scala/org/infinispan/server/hotrod/Decoder10.scala
===================================================================
--- trunk/server/hotrod/src/main/scala/org/infinispan/server/hotrod/Decoder10.scala 2010-06-30 06:32:33 UTC (rev 1937)
+++ trunk/server/hotrod/src/main/scala/org/infinispan/server/hotrod/Decoder10.scala 2010-06-30 16:51:19 UTC (rev 1938)
@@ -174,7 +174,7 @@
}
override def getOptimizedCache(h: HotRodHeader, c: Cache[ByteArrayKey, CacheValue]): Cache[ByteArrayKey, CacheValue] = {
- if (c.getConfiguration.getCacheMode.isDistributed && h.flag == ForceReturnPreviousValue) {
+ if (c.getConfiguration.getCacheMode.isDistributed && h.flag != ForceReturnPreviousValue) {
c.getAdvancedCache.withFlags(SKIP_REMOTE_LOOKUP)
} else {
c
More information about the infinispan-commits
mailing list