final TransactionOperation to = TransactionOperation.newBuilder() //
.setType(TransactionType.XA_ROLLBACK) //
.setTransactionId(txid.getTransactionKey()) //
.setWasPrepared(false) //
.build();
final TxCommand msg =
TxCommand.newBuilder().setCmdType(TxCommandType.TX_OP).setCmdContent(to.toByteString()).build();
this.journalStore.write(msg, null, tx.location, true);
}
else {
final TransactionOperation to = TransactionOperation.newBuilder() //
.setType(TransactionType.LOCAL_ROLLBACK) //
.setTransactionId(txid.getTransactionKey()) //
.setWasPrepared(false) //
.build();
final TxCommand msg =
TxCommand.newBuilder().setCmdType(TxCommandType.TX_OP).setCmdContent(to.toByteString()).build();
this.journalStore.write(msg, null, tx.location, true);
}
}
}