Esempio n. 1
0
 ~TempRecoveryUnitSwap() {
     boost::scoped_ptr<RecoveryUnit> deleting(_txn->releaseRecoveryUnit());
     _txn->setRecoveryUnit(_oldRecoveryUnit);
 }
Esempio n. 2
0
 TempRecoveryUnitSwap(OperationContext *txn)
     : _txn(txn),
       _oldRecoveryUnit(checked_cast<KVRecoveryUnit *>(_txn->releaseRecoveryUnit())) {
     _txn->setRecoveryUnit(_oldRecoveryUnit->newRecoveryUnit());
 }