diff options
author | Tyler Seip <Tyler.Seip@mongodb.com> | 2021-05-13 18:45:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-28 15:51:24 +0000 |
commit | 9eaa50dca26a9181108ba78b14d99e726af4755d (patch) | |
tree | 4ec705f348f12f042c1cb840ebe3199a8b53c1c8 /src/mongo/db/service_context.cpp | |
parent | faca58ba7033a117ba6ce2b88fa366993ec10c84 (diff) | |
download | mongo-9eaa50dca26a9181108ba78b14d99e726af4755d.tar.gz |
SERVER-52849: Protect stepUp from invalidated executor on shutdown in PrimaryOnlyService
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index 78b2163fa32..eb3901c01c1 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -305,10 +305,10 @@ void ServiceContext::OperationContextDeleter::operator()(OperationContext* opCtx auto service = client->getServiceContext(); invariant(service); + onDestroy(opCtx, service->_clientObservers); service->_delistOperation(opCtx); opCtx->getBaton()->detach(); - onDestroy(opCtx, service->_clientObservers); delete opCtx; } |