ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject ignite git commit: IGNITE-6356 - Fixed partition ID negative overflow
Date Wed, 13 Sep 2017 07:56:38 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-6356 7841984d4 -> 9340cbae6


IGNITE-6356 - Fixed partition ID negative overflow


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

Branch: refs/heads/ignite-6356
Commit: 9340cbae6a43acc52f244819654951a59ae3564d
Parents: 7841984
Author: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Authored: Wed Sep 13 10:56:27 2017 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Wed Sep 13 10:56:27 2017 +0300

----------------------------------------------------------------------
 .../cache/distributed/dht/preloader/GridDhtPartitionMap.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9340cbae/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionMap.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionMap.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionMap.java
index 3aa982b..cb69714 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionMap.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionMap.java
@@ -293,8 +293,8 @@ public class GridDhtPartitionMap implements Comparable<GridDhtPartitionMap>,
Ext
         map = new GridPartitionStateMap();
 
         for (int i = 0; i < size; i++) {
-            int ordinal = in.readByte() & 0xFF;
-            int part = in.readShort() & 0xFFFF;
+            int ordinal = in.readUnsignedByte();
+            int part = in.readUnsignedShort();
 
             put(part, GridDhtPartitionState.fromOrdinal(ordinal));
         }


Mime
View raw message