diff options
author | Geert Bosch <geert@mongodb.com> | 2015-03-13 12:53:53 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2015-03-13 17:28:18 -0400 |
commit | e9e813d4680b6894b0d3b84859da94b5b9fe95af (patch) | |
tree | c1d7f0217eecefb20c1315f8256b11bdd32ab815 | |
parent | a5a48528b5349cc9af56b784f4fd583dcfb11e32 (diff) | |
download | mongo-e9e813d4680b6894b0d3b84859da94b5b9fe95af.tar.gz |
SERVER-17338: uassert when primary steps down during dbcopy
-rw-r--r-- | src/mongo/client/dbclient.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/client/dbclient.cpp b/src/mongo/client/dbclient.cpp index d45ce2c8389..c57fcd67da8 100644 --- a/src/mongo/client/dbclient.cpp +++ b/src/mongo/client/dbclient.cpp @@ -920,6 +920,8 @@ namespace mongo { string ns = db + ".system.namespaces"; auto_ptr<DBClientCursor> c = query( ns.c_str(), fallbackFilter.obj(), 0, 0, 0, QueryOption_SlaveOk); + uassert(28611, str::stream() << "listCollections failed querying " << ns, c.get()); + while ( c->more() ) { BSONObj obj = c->nextSafe(); string ns = obj["name"].valuestr(); |