diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-12-09 17:12:11 -0500 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-12-12 11:16:32 -0500 |
commit | 6bb4fd956e719db3728f85a6bbf01a0c20ed19b6 (patch) | |
tree | 6e4ddd625ceee46099f7c33e29be57523530b506 | |
parent | 57b9e3b61fa08b51743d13ab5f8275534ddcf3ba (diff) | |
download | mongo-6bb4fd956e719db3728f85a6bbf01a0c20ed19b6.tar.gz |
SERVER-27295 Always set slaveOk to true on remote commands in the old initial sync
-rw-r--r-- | src/mongo/db/repl/rs_initialsync.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rs_initialsync.cpp b/src/mongo/db/repl/rs_initialsync.cpp index 17666866b02..4055c5bcdbd 100644 --- a/src/mongo/db/repl/rs_initialsync.cpp +++ b/src/mongo/db/repl/rs_initialsync.cpp @@ -352,7 +352,7 @@ Status _initialSync(OperationContext* txn, BackgroundSync* bgsync) { params.idIndexSpec = idIndex.Obj(); } else { const NamespaceString nss(options.fromDB, params.collectionName); - auto indexSpecs = r.conn()->getIndexSpecs(nss.ns()); + auto indexSpecs = r.conn()->getIndexSpecs(nss.ns(), QueryOption_SlaveOk); params.idIndexSpec = Cloner::getIdIndexSpec(indexSpecs); } |