diff options
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index 58f440af121..9d9f907aa1b 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -385,6 +385,8 @@ void ServiceContext::_delistOperation(OperationContext* opCtx) noexcept { if (client->session()) { _numCurrentOps.subtractAndFetch(1); } + + opCtx->releaseOperationKey(); } void ServiceContext::killAndDelistOperation(OperationContext* opCtx, |