summaryrefslogtreecommitdiff
path: root/src/mongo/s/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r--src/mongo/s/server.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp
index d75120849af..1cfaaf92e71 100644
--- a/src/mongo/s/server.cpp
+++ b/src/mongo/s/server.cpp
@@ -347,12 +347,14 @@ Status initializeSharding(OperationContext* opCtx) {
auto targeterFactoryPtr = targeterFactory.get();
ShardFactory::BuilderCallable setBuilder = [targeterFactoryPtr](
- const ShardId& shardId, const ConnectionString& connStr) {
+ const ShardId& shardId,
+ const ConnectionString& connStr) {
return std::make_unique<ShardRemote>(shardId, connStr, targeterFactoryPtr->create(connStr));
};
ShardFactory::BuilderCallable masterBuilder = [targeterFactoryPtr](
- const ShardId& shardId, const ConnectionString& connStr) {
+ const ShardId& shardId,
+ const ConnectionString& connStr) {
return std::make_unique<ShardRemote>(shardId, connStr, targeterFactoryPtr->create(connStr));
};
@@ -426,7 +428,7 @@ public:
void onConfirmedSet(const State& state) final {
auto connStr = state.connStr;
- auto fun = [ serviceContext = _serviceContext, connStr ](auto args) {
+ auto fun = [serviceContext = _serviceContext, connStr](auto args) {
if (ErrorCodes::isCancelationError(args.status.code())) {
return;
}