summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r--src/mongo/db/operation_context.h5
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.