615616617618619620621622623624625
{ throw new XAException(XAException.XAER_NOTA); } // allow equals/hashCode to work correctly xid = new RecoveredXid(xid); if (m_journal.forget(xid)) { m_journal.writeCompletion(xid); }
342343344345346347348
nTxIdArray[2] = (byte)((nXidNumber >> 8) & 0xff); nTxIdArray[3] = (byte)(nXidNumber & 0xff); Arrays.fill(nBrQArray, (byte)'B'); return new RecoveredXid(nTxIdArray, nBrQArray, 0xcafecafe); }
919293949596979899100101
log.info("There are " + txInDoubt.length + " xids in doubt"); for (int k=0; k < txInDoubt.length; k++) { RecoveredXid xid = convertToRecoveredXid(txInDoubt[k]); if (xidsToRecover == null || xidsToRecover.contains(xid)) { try { log.info("rollbacking of Xid " + xid);
188189190191192193194195196197198199200
return xids; } private RecoveredXid convertToRecoveredXid(Xid xid) { RecoveredXid recoveredXid = new RecoveredXid(); recoveredXid.setBranchQualifier(xid.getBranchQualifier()); recoveredXid.setFormatId(xid.getFormatId()); recoveredXid.setGlobalTransactionId(xid.getGlobalTransactionId()); return recoveredXid; }