private void setReplSourceFor(Hive hiveDb, String dbName, Database db) throws HiveException {
    if (!ReplChangeManager.isSourceOfReplication(db)) {
      // Check if the schedule name is available else set the query value
      // as default.
      String value = conf.get(SCHEDULED_QUERY_SCHEDULENAME,
              "default_" + getQueryState().getQueryString());
      updateReplSourceFor(hiveDb, dbName, db, value);
    } else {
      // If a schedule name is available and that isn't part of the
      // existing conf, append the schedule name to the conf.
      String scheduleQuery = conf.get(SCHEDULED_QUERY_SCHEDULENAME);
      if (!StringUtils.isEmpty(scheduleQuery)) {
        if (!getReplPolicyIdString(db).contains(scheduleQuery)) {
          updateReplSourceFor(hiveDb, dbName, db,
                  getReplPolicyIdString(db) + ", " + scheduleQuery);
        }
      }
    }
  }
Decide whether to dump ACID tables.
@param tableName - Name of ACID table to be replicated
@return true if need to bootstrap dump ACID table and false if not.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java