ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [41/50] ignite git commit: Fixed initialization of PartitionCountersPage.
Date Tue, 20 Jun 2017 06:00:43 GMT
Fixed initialization of PartitionCountersPage.


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

Branch: refs/heads/ignite-2.1.2-exchange
Commit: 6143bc96917409af9e267af789d802883945867a
Parents: 59ea90d
Author: Ilya Lantukh <ilantukh@gridgain.com>
Authored: Sun Jun 18 10:11:58 2017 +0300
Committer: devozerov <ppozerov@gmail.com>
Committed: Sun Jun 18 10:11:58 2017 +0300

----------------------------------------------------------------------
 .../processors/cache/persistence/GridCacheOffheapManager.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/6143bc96/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/GridCacheOffheapManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/GridCacheOffheapManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/GridCacheOffheapManager.java
index eb9f4df..5a35490 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/GridCacheOffheapManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/GridCacheOffheapManager.java
@@ -242,7 +242,7 @@ public class GridCacheOffheapManager extends IgniteCacheOffheapManagerImpl
imple
 
                             boolean init = cntrsPageId == 0;
 
-                            if (init) {
+                            if (init && items > 0) {
                                 cntrsPageId = pageMem.allocatePage(grpId, store.partId(),
PageIdAllocator.FLAG_DATA);
 
                                 io.setCountersPageId(pageAddr, cntrsPageId);


Mime
View raw message