ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [6/8] ignite git commit: IGNITE-1770: Better raw mode handling.
Date Fri, 23 Oct 2015 14:28:21 GMT
IGNITE-1770: Better raw mode handling.


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

Branch: refs/heads/ignite-1770
Commit: 2a8b75a269f71f2487bd9eb24457df2e1c53d3c1
Parents: 03e1f8d
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Fri Oct 23 17:26:03 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Fri Oct 23 17:26:03 2015 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/portable/PortableClassDescriptor.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2a8b75a2/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
index 5f7ab08..ee78fd0 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
@@ -535,6 +535,8 @@ public class PortableClassDescriptor {
 
             case EXTERNALIZABLE:
                 if (writeHeader(obj, writer)) {
+                    writer.rawWriter();
+
                     try {
                         ((Externalizable)obj).writeExternal(writer);
                     }
@@ -542,6 +544,7 @@ public class PortableClassDescriptor {
                         throw new PortableException("Failed to write Externalizable object:
" + obj, e);
                     }
 
+                    writer.writeRawOffsetIfNeeded();
                     writer.writeLength();
                 }
 


Mime
View raw message