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-8706 Fixed total allocated pages count after file truncation
Date Tue, 05 Jun 2018 13:01:39 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-8706 [created] 7759b10c5


IGNITE-8706 Fixed total allocated pages count after file truncation


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

Branch: refs/heads/ignite-8706
Commit: 7759b10c5b17dc1991a0ae24c62e0be78232546b
Parents: 2fe0a10
Author: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Authored: Tue Jun 5 16:01:25 2018 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Tue Jun 5 16:01:25 2018 +0300

----------------------------------------------------------------------
 .../processors/cache/persistence/file/FilePageStore.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7759b10c/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
index ae4880d..852eb0d 100755
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
@@ -279,9 +279,9 @@ public class FilePageStore implements PageStore {
             throw new PersistentStorageIOException("Failed to delete partition file: " +
cfgFile.getPath(), e);
         }
         finally {
-            allocated.set(0);
+            allocatedTracker.updateTotalAllocatedPages(-1L * pages());
 
-            allocatedTracker.updateTotalAllocatedPages(-1L * this.pages());
+            allocated.set(0);
 
             inited = false;
 


Mime
View raw message