summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-11-20 15:51:46 +0000
committerevergreen <evergreen@mongodb.com>2019-11-20 15:51:46 +0000
commit381c2cd0cc1efa2e67d1321be54489ae59af844f (patch)
treef2ea26e81f3080d5c5611db1ed5af723a6c27091
parentb4f98455b02fa64dd23be3512ef83649a5395b76 (diff)
downloadmongo-381c2cd0cc1efa2e67d1321be54489ae59af844f.tar.gz
Revert "SERVER-42897 fix test"
This reverts commit 69fb4bd8c149fc814cf0e9a37ca14b4391062a54.
-rw-r--r--src/mongo/util/latch_analyzer_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/latch_analyzer_test.cpp b/src/mongo/util/latch_analyzer_test.cpp
index ca1a548dfe8..adfa5688f8a 100644
--- a/src/mongo/util/latch_analyzer_test.cpp
+++ b/src/mongo/util/latch_analyzer_test.cpp
@@ -83,10 +83,10 @@ DEATH_TEST_F(LatchAnalyzerTest, RemoveInvalidWasPresent, "Fatal assertion 31361"
TEST_F(LatchAnalyzerTest, AddValidWasAbsent) {
Mutex higherLevel = MONGO_MAKE_LATCH(
Level(2), (SourceLocationHolder)MONGO_SOURCE_LOCATION(), "AddValidWasAbsent::higherLevel");
- stdx::lock_guard<Latch> highLevelLock(higherLevel);
+ higherLevel.lock();
Mutex lowerLevel = MONGO_MAKE_LATCH(
Level(1), (SourceLocationHolder)MONGO_SOURCE_LOCATION(), "AddValidWasAbsent::lowerLevel");
- stdx::lock_guard<Latch> lowLevelLock(lowerLevel);
+ lowerLevel.lock();
}
TEST_F(LatchAnalyzerTest, RemoveValidWasPresent) {