diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-02-26 12:13:29 -0500 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-02-27 10:36:11 -0500 |
commit | e3f361769cd13ba88aa24c1c0a71c76b187f64dd (patch) | |
tree | 27aa1602fd249c16506008090574adbecbb1ba04 /src/mongo/db/operation_context.h | |
parent | 13b91b55f4e2d28a10d6c2d39bc79cf47d592e3b (diff) | |
download | mongo-e3f361769cd13ba88aa24c1c0a71c76b187f64dd.tar.gz |
SERVER-33485 Active clients should always have a lock state
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index 77029acd1c7..cb39e4cbec6 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -131,10 +131,9 @@ public: void setLockState(std::unique_ptr<Locker> locker); /** - * Releases the locker to the caller. Call during OperationContext cleanup or initialization, - * only. + * Swaps the locker, releasing the old locker to the caller. */ - std::unique_ptr<Locker> releaseLockState(); + std::unique_ptr<Locker> swapLockState(std::unique_ptr<Locker> locker); /** * Raises a AssertionException if this operation is in a killed state. |