summaryrefslogtreecommitdiff
path: root/src/mongo/platform/mutex_test.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@mongodb.com>2019-12-16 21:39:41 +0000
committerevergreen <evergreen@mongodb.com>2019-12-16 21:39:41 +0000
commit86efdd6b047927d3a37577a6033bacc709c7ae89 (patch)
tree0fc01e4928e001914731159ce8c2dec7116929d0 /src/mongo/platform/mutex_test.cpp
parentec498c5968974012d50d6d04c26cd2cd0db87d22 (diff)
downloadmongo-86efdd6b047927d3a37577a6033bacc709c7ae89.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/platform/mutex_test.cpp')
-rw-r--r--src/mongo/platform/mutex_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/platform/mutex_test.cpp b/src/mongo/platform/mutex_test.cpp
index 739734c0e46..e85f8290466 100644
--- a/src/mongo/platform/mutex_test.cpp
+++ b/src/mongo/platform/mutex_test.cpp
@@ -63,6 +63,6 @@ TEST(MutexTest, Macros) {
// Verify the global named latch
static_assert(std::is_same_v<decltype(gMutex), Mutex>);
- ASSERT_EQ(gMutex.getName(), Mutex::kAnonymousMutexStr);
+ ASSERT_EQ(gMutex.getName(), latch_detail::kAnonymousName);
}
} // namespace mongo