You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2017/07/03 14:05:06 UTC

[06/14] ignite git commit: ignite-5383 Do not perform cache key validation when BinaryMarshaller is used This closes #2096

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/ignite-gg-12389
Commit: b762417ab43d78d451feaaa1d1b046ff020a8424
Parents: ce5f8e9
Author: daradurvs <da...@gmail.com>
Authored: Fri Jun 30 17:18:45 2017 +0300
Committer: sboikov <sb...@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;
     }
 
     /**