HBASE-6971 .META. directory does not contain .tableinfo serialization

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1396928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-10-11 06:58:07 +00:00
parent 00f8c0d6ca
commit da4fd3e29b
1 changed files with 5 additions and 9 deletions

View File

@ -380,16 +380,12 @@ public class MasterFileSystem {
if (!FSUtils.rootRegionExists(fs, rd)) {
bootstrap(rd, c);
}
createRootTableInfo(rd);
return rd;
}
private void createRootTableInfo(Path rd) throws IOException {
// Create ROOT tableInfo if required.
if (!FSTableDescriptors.isTableInfoExists(fs, rd,
Bytes.toString(HRegionInfo.ROOT_REGIONINFO.getTableName()))) {
FSTableDescriptors.createTableDescriptor(HTableDescriptor.ROOT_TABLEDESC, this.conf);
}
// Create tableinfo-s for ROOT and META if not already there.
FSTableDescriptors.createTableDescriptor(fs, rd, HTableDescriptor.ROOT_TABLEDESC, false);
FSTableDescriptors.createTableDescriptor(fs, rd, HTableDescriptor.META_TABLEDESC, false);
return rd;
}
private static void bootstrap(final Path rd, final Configuration c)