summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2016-08-23 17:53:46 -0400
committerSpencer T Brody <spencer@mongodb.com>2016-08-24 13:50:42 -0400
commitc62ce6037367993e0e899f6b9e3098d6aac396e2 (patch)
tree6348359ff32f152855caec3d1544b1d71df7309f /src/mongo/client/dbclient.cpp
parentc2f63b8cad8c0eddd1a488056556b4441c1c96b8 (diff)
downloadmongo-c62ce6037367993e0e899f6b9e3098d6aac396e2.tar.gz
SERVER-24807 Remove hiding of 'ns' variable in DBClientWithCommands::getIndexSpecs
Diffstat (limited to 'src/mongo/client/dbclient.cpp')
-rw-r--r--src/mongo/client/dbclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/dbclient.cpp b/src/mongo/client/dbclient.cpp
index 87a8f39fd3b..a6735fea214 100644
--- a/src/mongo/client/dbclient.cpp
+++ b/src/mongo/client/dbclient.cpp
@@ -1184,7 +1184,7 @@ list<BSONObj> DBClientWithCommands::getIndexSpecs(const string& ns, int options)
const long long id = cursorObj["id"].Long();
if (id != 0) {
- const std::string ns = cursorObj["ns"].String();
+ invariant(ns == cursorObj["ns"].String());
unique_ptr<DBClientCursor> cursor = getMore(ns, id, 0, 0);
while (cursor->more()) {
specs.push_back(cursor->nextSafe().getOwned());