summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/base_cloner_test_fixture.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-03-06 20:17:44 -0500
committerBenety Goh <benety@mongodb.com>2018-03-06 20:17:44 -0500
commit01a89a37332c7c5bd9892f6fbd4082c9f9e9462d (patch)
treed7285545300c88e822502cbc091f087e52da5128 /src/mongo/db/repl/base_cloner_test_fixture.cpp
parentd368f071651856039f2637202c122b1a55a44142 (diff)
downloadmongo-01a89a37332c7c5bd9892f6fbd4082c9f9e9462d.tar.gz
SERVER-33625 replace use of OldThreadPool in cloners and TaskRunner with ThreadPool
Diffstat (limited to 'src/mongo/db/repl/base_cloner_test_fixture.cpp')
-rw-r--r--src/mongo/db/repl/base_cloner_test_fixture.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/repl/base_cloner_test_fixture.cpp b/src/mongo/db/repl/base_cloner_test_fixture.cpp
index fa418d338fb..c38663a54cf 100644
--- a/src/mongo/db/repl/base_cloner_test_fixture.cpp
+++ b/src/mongo/db/repl/base_cloner_test_fixture.cpp
@@ -111,7 +111,13 @@ void BaseClonerTest::setUp() {
executor::ThreadPoolExecutorTest::setUp();
clear();
launchExecutorThread();
- dbWorkThreadPool = stdx::make_unique<OldThreadPool>(1);
+
+ ThreadPool::Options options;
+ options.minThreads = 1U;
+ options.maxThreads = 1U;
+ dbWorkThreadPool = stdx::make_unique<ThreadPool>(options);
+ dbWorkThreadPool->startup();
+
storageInterface.reset(new StorageInterfaceMock());
}
@@ -120,7 +126,7 @@ void BaseClonerTest::tearDown() {
getExecutor().join();
storageInterface.reset();
- dbWorkThreadPool->join();
+
dbWorkThreadPool.reset();
}