summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@mongodb.com>2019-12-16 21:39:41 +0000
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2020-01-27 15:37:10 -0500
commit4dfb47bda0dd1b44472521a81ca50a9fde3c1f07 (patch)
tree18d2960ee8c6b88cccc9ceb799a680bd8f9d495a /src/mongo/s
parent1dd408fb1e062b047c92109972f6a4a1eaabb60d (diff)
downloadmongo-4dfb47bda0dd1b44472521a81ca50a9fde3c1f07.tar.gz
SERVER-43945 Expose out of order latch acquisitions in serverStatus
This review does several related things: - Modifies the Mutex type to have one Identity object per invocation context - Adds a latchAnalysis field to serverStatus - Officially turns on CI-only failure for acq level violations - Changes a few acq level declarations to be more permissive
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp
index 1870814d80e..020393769ba 100644
--- a/src/mongo/s/server.cpp
+++ b/src/mongo/s/server.cpp
@@ -102,6 +102,7 @@
#include "mongo/util/exception_filter_win32.h"
#include "mongo/util/exit.h"
#include "mongo/util/fast_clock_source_factory.h"
+#include "mongo/util/latch_analyzer.h"
#include "mongo/util/log.h"
#include "mongo/util/net/socket_exception.h"
#include "mongo/util/net/socket_utils.h"
@@ -343,6 +344,8 @@ void cleanupTask(ServiceContext* serviceContext) {
}
audit::logShutdown(Client::getCurrent());
+
+ LatchAnalyzer::get(serviceContext).dump();
}
Status initializeSharding(OperationContext* opCtx) {