diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2019-04-26 15:03:46 -0400 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2019-06-21 17:02:30 -0400 |
commit | 1eff33bd1a8d48eb607675f87faf1836ba325006 (patch) | |
tree | 80149c8ff06158f7fdaaa0014500c06d080575a4 /src/mongo/db/service_liaison_mongod.h | |
parent | 8c4dfc2ba0568bd128a27f6481994758ce5f1c10 (diff) | |
download | mongo-1eff33bd1a8d48eb607675f87faf1836ba325006.tar.gz |
SERVER-39936 Use PeriodicRunner handles to simplify shutdown ordering
Diffstat (limited to 'src/mongo/db/service_liaison_mongod.h')
-rw-r--r-- | src/mongo/db/service_liaison_mongod.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/service_liaison_mongod.h b/src/mongo/db/service_liaison_mongod.h index c334eb5f36c..b1060425f6f 100644 --- a/src/mongo/db/service_liaison_mongod.h +++ b/src/mongo/db/service_liaison_mongod.h @@ -68,7 +68,9 @@ protected: * Returns the service context. */ ServiceContext* _context() override; - std::vector<std::unique_ptr<PeriodicRunner::PeriodicJobHandle>> _jobs; + + stdx::mutex _mutex; + std::vector<PeriodicJobAnchor> _jobs; }; } // namespace mongo |