ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: ignite-5383 Do not perform cache key validation when BinaryMarshaller is used This closes #2096
Date Fri, 30 Jun 2017 14:18:52 GMT
Repository: ignite
Updated Branches:
  refs/heads/master ce5f8e901 -> b762417ab


ignite-5383 Do not perform cache key validation when BinaryMarshaller is used
This closes #2096


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/b762417a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/b762417a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/b762417a

Branch: refs/heads/master
Commit: b762417ab43d78d451feaaa1d1b046ff020a8424
Parents: ce5f8e9
Author: daradurvs <daradurvs@gmail.com>
Authored: Fri Jun 30 17:18:45 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Fri Jun 30 17:18:45 2017 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheAdapter.java       | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/b762417a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
index e08d13a..25213a7 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
@@ -351,6 +351,10 @@ public abstract class GridCacheAdapter<K, V> implements IgniteInternalCache<K,
V
         init();
 
         aff = new GridCacheAffinityImpl<>(ctx);
+
+        // The check of methods 'equals' and 'hashCode' that they had been overrode isn't
required, since BinaryMarshaller doesn't use them.
+        if (keyCheck && ctx.binaryMarshaller())
+            keyCheck = false;
     }
 
     /**


Mime
View raw message