summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sharding_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/sharding_util.cpp')
-rw-r--r--src/mongo/db/s/sharding_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/sharding_util.cpp b/src/mongo/db/s/sharding_util.cpp
index 89da42f666b..351da27f49c 100644
--- a/src/mongo/db/s/sharding_util.cpp
+++ b/src/mongo/db/s/sharding_util.cpp
@@ -95,7 +95,7 @@ void sendCommandToShards(OperationContext* opCtx,
auto response = ars.next();
const auto errorContext = "Failed command {} for database '{}' on shard '{}'"_format(
- command.toString(), dbName, response.shardId);
+ command.toString(), dbName, StringData{response.shardId});
auto shardResponse =
uassertStatusOKWithContext(std::move(response.swResponse), errorContext);