public Path getDefaultDatabasePath(String dbName) throws MetaException {
    // TODO CAT - I am fairly certain that most calls to this are in error.  This should only be
    // used when the database location is unset, which should never happen except when a
    // new database is being created.  Once I have confirmation of this change calls of this to
    // getDatabasePath(), since it does the right thing.  Also, merge this with
    // determineDatabasePath() as it duplicates much of the logic.
    return getDefaultDatabasePath(dbName, false);
  }
Get the managed tables path specified by the database.  In the case of the default database the root of the
warehouse is returned.
@param db database to get the path of
@return path to the database directory
@throws MetaException when the file path cannot be properly determined from the configured
file system.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java