diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-09-24 14:31:15 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-25 17:26:09 +0000 |
commit | deb9f8e6bf9517061404cf2f476cd08f60687d83 (patch) | |
tree | b6c962dbc53f972b35766789a2170d961eb50c34 /src/mongo/shell | |
parent | 8e53f9b4db4f3cc2c09e6a3fa2c29781142eb896 (diff) | |
download | mongo-deb9f8e6bf9517061404cf2f476cd08f60687d83.tar.gz |
SERVER-51084 tweak range loop variable types to fix xcode build
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/shell_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils.cpp b/src/mongo/shell/shell_utils.cpp index 4355bf7afd1..4dc05908256 100644 --- a/src/mongo/shell/shell_utils.cpp +++ b/src/mongo/shell/shell_utils.cpp @@ -582,7 +582,7 @@ void ConnectionRegistry::killOperationsOnAllConnections(bool withPrompt) const { continue; } auto inprog = currentOpRes["inprog"].embeddedObject(); - for (const auto op : inprog) { + for (const auto& op : inprog) { // For sharded clusters, `client_s` is used instead and `client` is not present. std::string client; if (auto elem = op["client"]) { |