ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [16/20] ignite git commit: IGNITE-1651: WIP.
Date Wed, 21 Oct 2015 14:50:08 GMT
IGNITE-1651: WIP.


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

Branch: refs/heads/ignite-1651
Commit: 4282aeaffb0c797cc9e5f4f33baaa654dbe4da0a
Parents: 35acc40
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Wed Oct 21 15:37:20 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Wed Oct 21 15:37:20 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/4282aeaf/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableReaderExImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableReaderExImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableReaderExImpl.java
index 702f28e..7c8beb6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableReaderExImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableReaderExImpl.java
@@ -197,6 +197,9 @@ public class PortableReaderExImpl implements PortableReader, PortableRawReaderEx
             // skip obj type byte
             rawOff++;
 
+        // Validate protocol version.
+        PortableUtils.checkProtocolVersion(doReadByte(true));
+
         // skip user flag
         rawOff += 1;
 


Mime
View raw message