diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-05-06 18:23:54 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-05-09 11:26:14 -0400 |
commit | 09701a3de6f617a69e3c6368d517771d68febb2b (patch) | |
tree | 622caab44868ac4ad8e0976231df4d8ed2b1525e /src/mongo/s | |
parent | 2013e866b516a7fb7e5d3340b2d38d6d534e60c0 (diff) | |
download | mongo-09701a3de6f617a69e3c6368d517771d68febb2b.tar.gz |
SERVER-24029 SERVER-24030 Fix hidden variables caught by coverity
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/cluster_fsync_cmd.cpp | 6 | ||||
-rw-r--r-- | src/mongo/s/commands/cluster_list_databases_cmd.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/cluster_fsync_cmd.cpp b/src/mongo/s/commands/cluster_fsync_cmd.cpp index 85fc026ce9a..b3dc4e5edcd 100644 --- a/src/mongo/s/commands/cluster_fsync_cmd.cpp +++ b/src/mongo/s/commands/cluster_fsync_cmd.cpp @@ -92,14 +92,14 @@ public: continue; } - auto result = + auto response = uassertStatusOK(s->runCommand(txn, ReadPreferenceSetting{ReadPreference::PrimaryOnly}, "admin", BSON("fsync" << 1), Shard::RetryPolicy::kIdempotent)); - uassertStatusOK(result.commandStatus); - BSONObj x = std::move(result.response); + uassertStatusOK(response.commandStatus); + BSONObj x = std::move(response.response); sub.append(s->getId(), x); diff --git a/src/mongo/s/commands/cluster_list_databases_cmd.cpp b/src/mongo/s/commands/cluster_list_databases_cmd.cpp index 6c40889a086..0ad31d0c65d 100644 --- a/src/mongo/s/commands/cluster_list_databases_cmd.cpp +++ b/src/mongo/s/commands/cluster_list_databases_cmd.cpp @@ -100,14 +100,14 @@ public: continue; } - auto result = uassertStatusOK( + auto response = uassertStatusOK( s->runCommand(txn, ReadPreferenceSetting{ReadPreference::PrimaryPreferred}, "admin", BSON("listDatabases" << 1), Shard::RetryPolicy::kIdempotent)); - uassertStatusOK(result.commandStatus); - BSONObj x = std::move(result.response); + uassertStatusOK(response.commandStatus); + BSONObj x = std::move(response.response); BSONObjIterator j(x["databases"].Obj()); while (j.more()) { |