diff options
Diffstat (limited to 'src/mongo/db/concurrency/d_concurrency_bm.cpp')
-rw-r--r-- | src/mongo/db/concurrency/d_concurrency_bm.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mongo/db/concurrency/d_concurrency_bm.cpp b/src/mongo/db/concurrency/d_concurrency_bm.cpp index 88692b2a2de..de643c34374 100644 --- a/src/mongo/db/concurrency/d_concurrency_bm.cpp +++ b/src/mongo/db/concurrency/d_concurrency_bm.cpp @@ -100,8 +100,7 @@ BENCHMARK_DEFINE_F(DConcurrencyTest, BM_CollectionIntentSharedLock)(benchmark::S for (auto keepRunning : state) { Lock::DBLock dlk(clients[state.thread_index].second.get(), "test", MODE_IS); - Lock::CollectionLock clk( - clients[state.thread_index].second->lockState(), "test.coll", MODE_IS); + Lock::CollectionLock clk(clients[state.thread_index].second.get(), "test.coll", MODE_IS); } if (state.thread_index == 0) { @@ -119,8 +118,7 @@ BENCHMARK_DEFINE_F(DConcurrencyTest, BM_CollectionIntentExclusiveLock)(benchmark for (auto keepRunning : state) { Lock::DBLock dlk(clients[state.thread_index].second.get(), "test", MODE_IX); - Lock::CollectionLock clk( - clients[state.thread_index].second->lockState(), "test.coll", MODE_IX); + Lock::CollectionLock clk(clients[state.thread_index].second.get(), "test.coll", MODE_IX); } if (state.thread_index == 0) { @@ -138,8 +136,7 @@ BENCHMARK_DEFINE_F(DConcurrencyTest, BM_MMAPv1CollectionSharedLock)(benchmark::S for (auto keepRunning : state) { Lock::DBLock dlk(clients[state.thread_index].second.get(), "test", MODE_IS); - Lock::CollectionLock clk( - clients[state.thread_index].second->lockState(), "test.coll", MODE_S); + Lock::CollectionLock clk(clients[state.thread_index].second.get(), "test.coll", MODE_S); } if (state.thread_index == 0) { @@ -157,8 +154,7 @@ BENCHMARK_DEFINE_F(DConcurrencyTest, BM_MMAPv1CollectionExclusiveLock)(benchmark for (auto keepRunning : state) { Lock::DBLock dlk(clients[state.thread_index].second.get(), "test", MODE_IX); - Lock::CollectionLock clk( - clients[state.thread_index].second->lockState(), "test.coll", MODE_X); + Lock::CollectionLock clk(clients[state.thread_index].second.get(), "test.coll", MODE_X); } if (state.thread_index == 0) { |