@Override
  public GetDatabaseObjectsResponse get_databases_req(GetDatabaseObjectsRequest request)
      throws MetaException {
    String pattern = request.isSetPattern() ? request.getPattern() : null;
    String catName = request.isSetCatalogName() ? request.getCatalogName() : getDefaultCatalog(conf);

    startFunction("get_databases_req", ": catalogName=" + catName + " pattern=" + pattern);

    GetDatabaseObjectsResponse response = new GetDatabaseObjectsResponse();
    List<Database> dbs = null;
    Exception ex = null;

    try {
      dbs = getMS().getDatabaseObjects(catName, pattern);
      dbs = FilterUtils.filterDatabaseObjectsIfEnabled(isServerFilterEnabled, filterHook, dbs);
      response.setDatabases(dbs);
    } catch (Exception e) {
      ex = e;
      throw newMetaException(e);
    } finally {
      endFunction("get_databases_req", dbs != null, ex);
    }

    return response;
  }
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