diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-02-25 14:06:36 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-02-28 14:49:20 -0500 |
commit | e7ec5454e1614826e57563c24f94662a44184283 (patch) | |
tree | 9e8f73b3c4645fc5fe5cf91f4bce1fe0555da4e5 | |
parent | 88c5366ba2dce90c2953d7bf3b38775af8f0c380 (diff) | |
download | mongo-e7ec5454e1614826e57563c24f94662a44184283.tar.gz |
SERVER-22859 SCCC config server reads need to specify slaveOk
-rw-r--r-- | src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp b/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp index 82d66a63316..2da36fa2c7d 100644 --- a/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp +++ b/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp @@ -918,7 +918,8 @@ StatusWith<std::vector<BSONObj>> CatalogManagerLegacy::_findOnConfig(const std:: try { ScopedDbConnection conn(_configServerConnectionString, 30.0); - std::unique_ptr<DBClientCursor> cursor(_safeCursor(conn->query(ns, query, limit))); + std::unique_ptr<DBClientCursor> cursor( + _safeCursor(conn->query(ns, query, limit, 0, nullptr, QueryOption_SlaveOk))); if (!cursor.get()) { conn.done(); return Status(ErrorCodes::HostUnreachable, |