use of org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal in project ignite by apache.
the class HibernateReadWriteAccessStrategy method rollbackCurrentTx.
/**
* Roll backs current transaction.
*/
private void rollbackCurrentTx() {
try {
TxContext ctx = txCtx.get();
if (ctx != null) {
txCtx.remove();
GridNearTxLocal tx = cache.tx();
if (tx != null)
tx.proxy().rollback();
}
} catch (IgniteException e) {
log.error("Failed to rollback cache transaction.", e);
}
}
Aggregations