// table. Basically, we get all the locks that we don't already hold for all the
// tableMetadata rows. This ensures we don't have deadlock situations (ensuring primary and
// then index table locks are held, in that order). For now, we just don't support indexing
// on the system table. This is an issue because of the way we manage batch mutation in the
// Indexer.
region.mutateRowsWithLocks(tableMetadata, Collections.<byte[]>emptySet());
// Invalidate the cache - the next getTable call will add it
// TODO: consider loading the table that was just created here, patching up the parent table, and updating the cache
Cache<ImmutableBytesPtr,PTable> metaDataCache = GlobalCache.getInstance(this.getEnvironment()).getMetaDataCache();
if (parentCacheKey != null) {