~pbeaman/akiban-persistit/3.3.1-SNAPSHOT

« back to all changes in this revision

Viewing changes to src/main/java/com/persistit/Transaction.java

merge nwilliams: Fix closing of transactions from threads that have been abandoned.

https://code.launchpad.net/~nwilliams/akiban-persistit/handle-abandoned-txn-status/+merge/149643

Show diffs side-by-side

added added

removed removed

Lines of Context:
508
508
        if (_nestedDepth > 0 && !_commitCompleted && !_rollbackCompleted) {
509
509
            final TransactionStatus ts = _transactionStatus;
510
510
            if (ts != null && ts.getTs() == _startTimestamp && !_commitCompleted && !_rollbackCompleted) {
 
511
                _transactionStatus.markAbandoned();
511
512
                rollback();
512
513
                _persistit.getLogBase().txnAbandoned.log(this);
513
514
            }