You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/04/10 15:55:33 UTC
[26/53] [abbrv] ignite git commit: ignite-4851 : minor fix.
ignite-4851 : minor fix.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/07ecddc5
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/07ecddc5
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/07ecddc5
Branch: refs/heads/ignite-3477-master
Commit: 07ecddc5249594dfd70ffc083a3a9a01c802856c
Parents: abefb35
Author: Ilya Lantukh <il...@gridgain.com>
Authored: Mon Apr 3 17:44:42 2017 +0300
Committer: Ilya Lantukh <il...@gridgain.com>
Committed: Mon Apr 3 17:44:42 2017 +0300
----------------------------------------------------------------------
.../processors/cache/distributed/dht/GridDhtLocalPartition.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/07ecddc5/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
index 0572fdd..1c7db68 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
@@ -971,11 +971,11 @@ public class GridDhtLocalPartition extends GridCacheConcurrentMapImpl implements
}
private static GridDhtPartitionState getPartState(long state) {
- return GridDhtPartitionState.fromOrdinal((int) (state & (0x0000000000000008L)));
+ return GridDhtPartitionState.fromOrdinal((int) (state & (0x0000000000000007L)));
}
private static long setPartState(long state, GridDhtPartitionState partState) {
- return (state & (~0x0000000000000008L)) | partState.ordinal();
+ return (state & (~0x0000000000000007L)) | partState.ordinal();
}
private static int getReservations(long state) {