Fixed pages() method for FilePageStore
@@ -535,6 +535,6 @@ public class FilePageStore implements PageStore {
if (!inited)
return 0;
- return (int)(allocated.get() / pageSize);
+ return (int)(allocated.get() - headerSize()) / pageSize;
}
}
