diff options
author | Geert Bosch <geert@mongodb.com> | 2015-04-23 13:45:32 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2015-05-15 20:45:56 -0400 |
commit | 876e85fe54f324ac27d0d0ea875b1aaa3c8debd9 (patch) | |
tree | 127cd19292a0807bded69632595ff9e00170c7ac /src/mongo/db/operation_context_noop.h | |
parent | 5ff7104a1696494c38d80369bd9cda20bcbe973a (diff) | |
download | mongo-876e85fe54f324ac27d0d0ea875b1aaa3c8debd9.tar.gz |
SERVER-18168: Get rid of nested units of work in the RecoveryUnit
Diffstat (limited to 'src/mongo/db/operation_context_noop.h')
-rw-r--r-- | src/mongo/db/operation_context_noop.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/operation_context_noop.h b/src/mongo/db/operation_context_noop.h index f27f3d1ef96..aaf9cc012bc 100644 --- a/src/mongo/db/operation_context_noop.h +++ b/src/mongo/db/operation_context_noop.h @@ -71,8 +71,12 @@ namespace mongo { return _recoveryUnit.release(); } - virtual void setRecoveryUnit(RecoveryUnit* unit) override { + virtual RecoveryUnitState setRecoveryUnit(RecoveryUnit* unit, + RecoveryUnitState state) override { + RecoveryUnitState oldState = _ruState; _recoveryUnit.reset(unit); + _ruState = state; + return oldState; } virtual Locker* lockState() const override { |