diff options
author | Rahul Sundararaman <rahul.sundararaman@mongodb.com> | 2019-12-09 18:32:45 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-09 18:32:45 +0000 |
commit | 4f00d6e3d7e54a2d131b8216d4b4ef9bfd7a7c6b (patch) | |
tree | 97b83f3c954bd475f8eb5d94f592eca57a5018f7 /src/mongo/db/service_context.h | |
parent | 1f32f6c3952581833482a1c3b0b7ab913b60943f (diff) | |
download | mongo-4f00d6e3d7e54a2d131b8216d4b4ef9bfd7a7c6b.tar.gz |
SERVER-44155 Validate a subset of latches of all levels
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r-- | src/mongo/db/service_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h index 7a9270061d2..a00e69dc604 100644 --- a/src/mongo/db/service_context.h +++ b/src/mongo/db/service_context.h @@ -47,6 +47,7 @@ #include "mongo/util/clock_source.h" #include "mongo/util/concurrency/with_lock.h" #include "mongo/util/decorable.h" +#include "mongo/util/hierarchical_acquisition.h" #include "mongo/util/periodic_runner.h" #include "mongo/util/tick_source.h" @@ -540,7 +541,7 @@ private: std::unique_ptr<ClientObserver> _observer; }; - Mutex _mutex = MONGO_MAKE_LATCH("ServiceContext::_mutex"); + Mutex _mutex = MONGO_MAKE_LATCH(HierarchicalAcquisitionLevel(2), "ServiceContext::_mutex"); /** * The periodic runner. |