@Override
  public List<String> get_databases(final String pattern) throws MetaException {
    startFunction("get_databases", ": " + pattern);

    String[] parsedDbNamed = parseDbName(pattern, conf);
    List<String> ret = null;
    Exception ex = null;
    try {
      GetDatabaseObjectsRequest req = new GetDatabaseObjectsRequest();
      req.setCatalogName(parsedDbNamed[CAT_NAME]);
      if (parsedDbNamed[DB_NAME] != null) {
        req.setPattern(parsedDbNamed[DB_NAME]);
      }

      GetDatabaseObjectsResponse response = get_databases_req(req);
      ret = response.getDatabases().stream()
          .map(Database::getName)
          .collect(Collectors.toList());
    } catch (Exception e) {
      ex = e;
      throw newMetaException(e);
    } finally {
      endFunction("get_databases", ret != null, ex);
    }
    return ret;
  }
Checks whether the repl.last.id is being updated.
@param oldDb the old db object
@param newDb the new db object
@return true if repl.last.id is being changed.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java