From 9bcb318c4c9f2c482413a9d85b7e7c99c0492653 Mon Sep 17 00:00:00 2001 From: Charlie Swanson Date: Mon, 20 May 2019 17:39:25 -0400 Subject: SERVER-23923 Track writeConcern through getMores --- src/mongo/dbtests/cursor_manager_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mongo/dbtests') diff --git a/src/mongo/dbtests/cursor_manager_test.cpp b/src/mongo/dbtests/cursor_manager_test.cpp index 44cc8b7a941..6a3ebd83cc6 100644 --- a/src/mongo/dbtests/cursor_manager_test.cpp +++ b/src/mongo/dbtests/cursor_manager_test.cpp @@ -84,6 +84,7 @@ public: return {makeFakePlanExecutor(opCtx), kTestNss, {}, + opCtx->getWriteConcern(), repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -134,6 +135,7 @@ TEST_F(CursorManagerTest, ShouldBeAbleToKillPinnedCursor) { {makeFakePlanExecutor(), kTestNss, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -160,6 +162,7 @@ TEST_F(CursorManagerTest, ShouldBeAbleToKillPinnedCursorMultiClient) { {makeFakePlanExecutor(), kTestNss, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -196,6 +199,7 @@ TEST_F(CursorManagerTest, InactiveCursorShouldTimeout) { {makeFakePlanExecutor(), NamespaceString{"test.collection"}, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -211,6 +215,7 @@ TEST_F(CursorManagerTest, InactiveCursorShouldTimeout) { {makeFakePlanExecutor(), NamespaceString{"test.collection"}, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -231,6 +236,7 @@ TEST_F(CursorManagerTest, InactivePinnedCursorShouldNotTimeout) { {makeFakePlanExecutor(), NamespaceString{"test.collection"}, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -255,6 +261,7 @@ TEST_F(CursorManagerTest, MarkedAsKilledCursorsShouldBeDeletedOnCursorPin) { {makeFakePlanExecutor(), NamespaceString{"test.collection"}, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -288,6 +295,7 @@ TEST_F(CursorManagerTest, InactiveKilledCursorsShouldTimeout) { {makeFakePlanExecutor(), NamespaceString{"test.collection"}, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -320,6 +328,7 @@ TEST_F(CursorManagerTest, UsingACursorShouldUpdateTimeOfLastUse) { {makeFakePlanExecutor(), kTestNss, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -333,6 +342,7 @@ TEST_F(CursorManagerTest, UsingACursorShouldUpdateTimeOfLastUse) { {makeFakePlanExecutor(), kTestNss, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, @@ -370,6 +380,7 @@ TEST_F(CursorManagerTest, CursorShouldNotTimeOutUntilIdleForLongEnoughAfterBeing {makeFakePlanExecutor(), kTestNss, {}, + {}, repl::ReadConcernArgs(repl::ReadConcernLevel::kLocalReadConcern), BSONObj(), ClientCursorParams::LockPolicy::kLocksInternally, -- cgit v1.2.1