summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2015-03-13 12:53:53 -0400
committerGeert Bosch <geert@mongodb.com>2015-03-13 17:28:18 -0400
commite9e813d4680b6894b0d3b84859da94b5b9fe95af (patch)
treec1d7f0217eecefb20c1315f8256b11bdd32ab815
parenta5a48528b5349cc9af56b784f4fd583dcfb11e32 (diff)
downloadmongo-e9e813d4680b6894b0d3b84859da94b5b9fe95af.tar.gz
SERVER-17338: uassert when primary steps down during dbcopy
-rw-r--r--src/mongo/client/dbclient.cpp2
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();