Use slaveOk read in mongodump to allow dumping of secondaries. SERVER-3854.
This commit is contained in:
@@ -402,7 +402,7 @@ namespace mongo {
|
||||
// findOne throws an AssertionException if it's not authenticated.
|
||||
if (_coll.size() > 0) {
|
||||
// BSONTools don't have a collection
|
||||
conn().findOne(getNS(), Query("{}"));
|
||||
conn().findOne(getNS(), Query("{}"), 0, QueryOption_SlaveOk);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user