ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [31/50] [abbrv] incubator-ignite git commit: # ignite-51
Date Wed, 11 Mar 2015 11:08:03 GMT
# ignite-51


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

Branch: refs/heads/ignite-368
Commit: 107545953a5c85254acc610e28deb177e806b8ff
Parents: ff40a19
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Mar 10 15:05:40 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Mar 10 15:30:17 2015 +0300

----------------------------------------------------------------------
 .../cache/distributed/near/CacheVersionedValue.java      | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/10754595/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/CacheVersionedValue.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/CacheVersionedValue.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/CacheVersionedValue.java
index 74c83e2..91ac41f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/CacheVersionedValue.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/CacheVersionedValue.java
@@ -20,6 +20,8 @@ package org.apache.ignite.internal.processors.cache.distributed.near;
 import org.apache.ignite.*;
 import org.apache.ignite.internal.processors.cache.*;
 import org.apache.ignite.internal.processors.cache.version.*;
+import org.apache.ignite.internal.util.tostring.*;
+import org.apache.ignite.internal.util.typedef.internal.*;
 import org.apache.ignite.plugin.extensions.communication.*;
 
 import java.nio.*;
@@ -29,9 +31,11 @@ import java.nio.*;
  */
 public class CacheVersionedValue implements Message {
     /** Value. */
+    @GridToStringInclude
     private CacheObject val;
 
     /** Cache version. */
+    @GridToStringInclude
     private GridCacheVersion ver;
 
     /** */
@@ -125,7 +129,7 @@ public class CacheVersionedValue implements Message {
 
         switch (reader.state()) {
             case 0:
-                val = reader.readMessage("obj");
+                val = reader.readMessage("val");
 
                 if (!reader.isLastRead())
                     return false;
@@ -154,4 +158,9 @@ public class CacheVersionedValue implements Message {
     @Override public byte fieldsCount() {
         return 2;
     }
+
+    /** {@inheritDoc} */
+    @Override public String toString() {
+        return S.toString(CacheVersionedValue.class, this);
+    }
 }


Mime
View raw message