private void markDbAsReplIncompatible(MultiDataSourceJdbcResource jdbcResource, String database) throws SQLException, MetaException {
    try (Statement stmt = jdbcResource.getConnection().createStatement()){
      String catalog = MetaStoreUtils.getDefaultCatalog(jdbcResource.getConf());
      String s = jdbcResource.getSqlGenerator().getDbProduct().getPrepareTxnStmt();
      if (s != null) {
        stmt.execute(s);
      }
      long dbId = jdbcResource.execute(new GetDatabaseIdHandler(database, catalog));
      new UpdataDatabasePropFunction(database, dbId, ReplConst.REPL_INCOMPATIBLE, ReplConst.TRUE).execute(jdbcResource);
    }
  }
@param jdbcResource A {@link MultiDataSourceJdbcResource} instance responsible for providing all the necessary 
                    resources to be able to perform transactional database calls.
@return 0 if skipCount is true, the number of aborted transactions otherwise
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/functions/AbortTxnsFunction.java