ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [01/37] incubator-ignite git commit: # GG-10002: Debug.
Date Fri, 03 Apr 2015 09:12:58 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-cacheplug-rmtvalid 9dda6bfc2 -> be31dc22a


# GG-10002: Debug.


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

Branch: refs/heads/ignite-cacheplug-rmtvalid
Commit: d7dad487da127b66554f48e96800509be7830d78
Parents: c2f5211
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Tue Mar 31 13:16:19 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Tue Mar 31 13:16:19 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/query/GridQueryProcessor.java     | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d7dad487/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
index 0ae5325..2e5a7a0 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
@@ -397,22 +397,16 @@ public class GridQueryProcessor extends GridProcessorAdapter {
         try {
             final Class<?> valCls = val.getClass();
 
-            TypeId id;
+            int typeId = ctx.cacheObjects().typeId(val);
 
             if (ctx.cacheObjects().isPortableObject(val)) {
-                int typeId = ctx.cacheObjects().typeId(val);
-
                 String typeName = portableName(typeId);
 
                 if (typeName == null)
                     return;
-
-                id = new TypeId(space, typeId);
             }
-            else
-                id = new TypeId(space, valCls);
 
-            TypeDescriptor desc = types.get(id);
+            TypeDescriptor desc = types.get(new TypeId(space, typeId));
 
             if (desc == null || !desc.registered())
                 return;


Mime
View raw message