diff options
author | Amirsaman Memaripour <amirsaman.memaripour@mongodb.com> | 2020-05-19 12:24:03 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-19 20:29:44 +0000 |
commit | 601c7011ae1be252bc9bfd0031022c6ccae846b3 (patch) | |
tree | db32fa34c786b47322282b064b0df98a91763e19 /src/mongo/db/operation_context.h | |
parent | d5829d9c7ff5209b1c60440dac62f81c2e5dfe24 (diff) | |
download | mongo-601c7011ae1be252bc9bfd0031022c6ccae846b3.tar.gz |
SERVER-48295 Remove operation key in killAndDelistOperation
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index ea565afd52c..c5116e805b2 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -185,6 +185,12 @@ public: void setOperationKey(OperationKey opKey); /** + * Removes the operation UUID associated with this operation. + * DO NOT call this function outside `~OperationContext()` and `killAndDelistOperation()`. + */ + void releaseOperationKey(); + + /** * Returns the session ID associated with this operation, if there is one. */ const boost::optional<LogicalSessionId>& getLogicalSessionId() const { |