ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [02/10] ignite git commit: IGNITE-1770: WIP.
Date Mon, 26 Oct 2015 15:12:00 GMT
IGNITE-1770: WIP.


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

Branch: refs/heads/ignite-1770
Commit: 883ca389ff9aa8b59e840084103d41aee1ba7320
Parents: e3d2187
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Mon Oct 26 16:44:36 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Mon Oct 26 16:44:36 2015 +0300

----------------------------------------------------------------------
 .../internal/portable/PortableWriterExImpl.java      | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/883ca389/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
index 110fe4f..031f7a9 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableWriterExImpl.java
@@ -1810,14 +1810,23 @@ public class PortableWriterExImpl implements PortableWriter, PortableRawWriterEx
                 "via rawWriter() method. Consider fixing serialization logic for class: "
+ cls.getName());
 
         int id = ctx.fieldId(typeId, fieldName);
-        int off = out.position() - start;
 
-        saveFieldInfo(id, off);
+        writeFieldId(id);
 
         if (metaEnabled)
             metaHashSum = 31 * metaHashSum + (id + fieldType);
+    }
+
+    /**
+     * Write field ID.
+     * @param fieldId Field ID.
+     */
+    public void writeFieldId(int fieldId) {
+        int off = out.position() - start;
+
+        saveFieldInfo(fieldId, off);
 
-        doWriteInt(id);
+        doWriteInt(fieldId);
     }
 
      /**


Mime
View raw message