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 18:28:28 +0000 |
commit | 83b21f4e299adf0c3158c14eb5f6c3ae4385c0b1 (patch) | |
tree | 811ee4f47f0285da3df50ca82f95ee459f9b1a5d /src/mongo/db/service_context.h | |
parent | 6c857ec647406a67b4d708b4a7bc8aacd661350c (diff) | |
download | mongo-83b21f4e299adf0c3158c14eb5f6c3ae4385c0b1.tar.gz |
SERVER-52849: Protect stepUp from invalidated executor on shutdown in PrimaryOnlyService
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r-- | src/mongo/db/service_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h index a518d03aaf1..535f79d8604 100644 --- a/src/mongo/db/service_context.h +++ b/src/mongo/db/service_context.h @@ -180,6 +180,10 @@ public: /** * Hook called on a "opCtx" created by a service before deleting "opCtx". + * Note that this hook is called before any other work is done in the + * OperationContext destructor, meaning the OperationContext is still + * valid and registered with the ServiceContext when this hook is + * executed. * * Like a destructor, must not throw exceptions. */ |