You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by yz...@apache.org on 2016/04/29 19:01:58 UTC

[11/13] ignite git commit: Fixed metadata storage and example config.

Fixed metadata storage and example config.


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

Branch: refs/heads/ignite-db-x-gg-11124
Commit: 4c84e80f21b560159f5db536260eac53526e03a9
Parents: 58ac7a0
Author: Alexey Goncharuk <al...@gmail.com>
Authored: Thu Apr 28 21:28:28 2016 -0700
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Thu Apr 28 21:28:28 2016 -0700

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/database/MetadataStorage.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4c84e80f/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/MetadataStorage.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/MetadataStorage.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/MetadataStorage.java
index 5cb0ca1..047c5f1 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/MetadataStorage.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/MetadataStorage.java
@@ -173,7 +173,7 @@ public class MetadataStorage implements MetaStore {
                 // Position buffer to the last record.
                 writeBuf.position(state.position);
 
-                FullPageId idxRoot = pageMem.allocatePage(cacheId, 0, PageIdAllocator.FLAG_IDX);
+                FullPageId idxRoot = pageMem.allocatePage(cacheId, 0, PageIdAllocator.FLAG_META);
 
                 if (writeBuf.remaining() < idxNameBytes.length + 9) {
                     // Link new meta page.