ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [41/50] [abbrv] incubator-ignite git commit: # sprint-2 minor
Date Tue, 17 Mar 2015 12:41:18 GMT
# sprint-2  minor


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

Branch: refs/heads/ignite-432
Commit: f65cbdb0eaba0ae325e0aa4dc2565b769a8e6884
Parents: cab4716
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Mar 17 09:17:20 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Mar 17 09:17:20 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f65cbdb0/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheObjectImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheObjectImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheObjectImpl.java
index 828d886..b131535 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheObjectImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheObjectImpl.java
@@ -52,6 +52,12 @@ public class CacheObjectImpl extends CacheObjectAdapter {
 
         try {
             if (cpy) {
+                if (valBytes == null) {
+                    assert val != null;
+
+                    valBytes = ctx.processor().marshal(ctx, val);
+                }
+
                 return (T)ctx.processor().unmarshal(ctx, valBytes,
                     val == null ? ctx.kernalContext().config().getClassLoader() : val.getClass().getClassLoader());
             }


Mime
View raw message