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.h | |
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.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. */ |