From 381c2cd0cc1efa2e67d1321be54489ae59af844f Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Wed, 20 Nov 2019 15:51:46 +0000 Subject: Revert "SERVER-42897 fix test" This reverts commit 69fb4bd8c149fc814cf0e9a37ca14b4391062a54. --- src/mongo/util/latch_analyzer_test.cpp | 4 ++-- 1 file 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 highLevelLock(higherLevel); + higherLevel.lock(); Mutex lowerLevel = MONGO_MAKE_LATCH( Level(1), (SourceLocationHolder)MONGO_SOURCE_LOCATION(), "AddValidWasAbsent::lowerLevel"); - stdx::lock_guard lowLevelLock(lowerLevel); + lowerLevel.lock(); } TEST_F(LatchAnalyzerTest, RemoveValidWasPresent) { -- cgit v1.2.1