diff options
Diffstat (limited to 'src/mongo/db/s/sharding_util.cpp')
-rw-r--r-- | src/mongo/db/s/sharding_util.cpp | 2 |
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); |