diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /src/mongo/s/commands/cluster_explain.cpp | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'src/mongo/s/commands/cluster_explain.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_explain.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/mongo/s/commands/cluster_explain.cpp b/src/mongo/s/commands/cluster_explain.cpp index fb3b748f4c5..3082a34fc7b 100644 --- a/src/mongo/s/commands/cluster_explain.cpp +++ b/src/mongo/s/commands/cluster_explain.cpp @@ -165,17 +165,16 @@ Status ClusterExplain::validateShardResults(const vector<Strategy::CommandResult for (size_t i = 0; i < shardResults.size(); i++) { auto status = getStatusFromCommandResult(shardResults[i].result); if (!status.isOK()) { - return status.withContext(str::stream() << "Explain command on shard " - << shardResults[i].target.toString() - << " failed"); + return status.withContext(str::stream() + << "Explain command on shard " + << shardResults[i].target.toString() << " failed"); } if (Object != shardResults[i].result["queryPlanner"].type()) { return Status(ErrorCodes::OperationFailed, - str::stream() << "Explain command on shard " - << shardResults[i].target.toString() - << " failed, caused by: " - << shardResults[i].result); + str::stream() + << "Explain command on shard " << shardResults[i].target.toString() + << " failed, caused by: " << shardResults[i].result); } if (shardResults[i].result.hasField("executionStats")) { @@ -197,9 +196,9 @@ Status ClusterExplain::validateShardResults(const vector<Strategy::CommandResult // Either all shards should have all plans execution stats, or none should. if (0 != numShardsAllPlansStats && shardResults.size() != numShardsAllPlansStats) { return Status(ErrorCodes::InternalError, - str::stream() << "Only " << numShardsAllPlansStats << "/" - << shardResults.size() - << " had allPlansExecution explain information."); + str::stream() + << "Only " << numShardsAllPlansStats << "/" << shardResults.size() + << " had allPlansExecution explain information."); } return Status::OK(); |