summaryrefslogtreecommitdiff
path: root/src/mongo/db/keys_collection_manager_sharding_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/keys_collection_manager_sharding_test.cpp')
-rw-r--r--src/mongo/db/keys_collection_manager_sharding_test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/keys_collection_manager_sharding_test.cpp b/src/mongo/db/keys_collection_manager_sharding_test.cpp
index d7c88d097f3..4c209a87e62 100644
--- a/src/mongo/db/keys_collection_manager_sharding_test.cpp
+++ b/src/mongo/db/keys_collection_manager_sharding_test.cpp
@@ -32,6 +32,7 @@
#include <string>
#include "mongo/db/jsobj.h"
+#include "mongo/db/keys_collection_client_sharded.h"
#include "mongo/db/keys_collection_document.h"
#include "mongo/db/keys_collection_manager_sharding.h"
#include "mongo/db/logical_clock.h"
@@ -68,9 +69,10 @@ protected:
clockSource->advance(Seconds(1));
operationContext()->getServiceContext()->setFastClockSource(std::move(clockSource));
- auto catalogClient = Grid::get(operationContext())->catalogClient();
- _keyManager =
- stdx::make_unique<KeysCollectionManagerSharding>("dummy", catalogClient, Seconds(1));
+ auto catalogClient = stdx::make_unique<KeysCollectionClientSharded>(
+ Grid::get(operationContext())->catalogClient());
+ _keyManager = stdx::make_unique<KeysCollectionManagerSharding>(
+ "dummy", std::move(catalogClient), Seconds(1));
}
void tearDown() override {