private void resetTxnInfo() {
    txnId = 0;
    stmtId = -1;
    numStatements = 0;
    tableWriteIds.clear();
    shouldReallocateWriteIds = false;
    queryId = null;
    replPolicy = null;
  }
@param delay time to delay for first heartbeat
ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DbTxnManager.java