ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [01/21] ignite git commit: IGNITE-5961 - Fixed pages() method for FilePageStore
Date Tue, 15 Aug 2017 16:05:07 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-5872 855ece3b1 -> dbcae598d


IGNITE-5961 - Fixed pages() method for FilePageStore


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

Branch: refs/heads/ignite-5872
Commit: 7199037d23e6a9115c6b085fb03a3633c73f863d
Parents: a7ac59f
Author: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Authored: Thu Aug 10 18:13:17 2017 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Thu Aug 10 18:13:17 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/7199037d/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 7fe1ffe..e6c5379 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
@@ -535,6 +535,6 @@ public class FilePageStore implements PageStore {
         if (!inited)
             return 0;
 
-        return (int)(allocated.get() / pageSize);
+        return (int)(allocated.get() - headerSize()) / pageSize;
     }
 }


Mime
View raw message