diff options
author | David Storch <david.storch@mongodb.com> | 2022-06-10 21:50:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-10 22:53:08 +0000 |
commit | f6b83615b8a3435193e501424bf4b9b91f9e8a1d (patch) | |
tree | c97eb170d89b19b03392e8e5ddd1671982b2fb1a /src/mongo/db/repl/rollback_source_impl.cpp | |
parent | 8fca1562eae7c9441c664a5868c220b4b2aad050 (diff) | |
download | mongo-f6b83615b8a3435193e501424bf4b9b91f9e8a1d.tar.gz |
SERVER-65955 Migrate shell exhaust path onto modern internal client API
In doing so, this also fixes the shell's C++ native query
path to correctly handle negative limit. The patch also
includes additional preparatory work for deleting the
query_DEPRECATED() internal client API.
Diffstat (limited to 'src/mongo/db/repl/rollback_source_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/rollback_source_impl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rollback_source_impl.cpp b/src/mongo/db/repl/rollback_source_impl.cpp index 9c56b0ff21e..8b427be197c 100644 --- a/src/mongo/db/repl/rollback_source_impl.cpp +++ b/src/mongo/db/repl/rollback_source_impl.cpp @@ -94,7 +94,8 @@ std::pair<BSONObj, NamespaceString> RollbackSourceImpl::findOneByUUID(const std: auto cursor = std::make_unique<DBClientCursor>(_getConnection(), std::move(findRequest), - ReadPreferenceSetting{ReadPreference::SecondaryPreferred}); + ReadPreferenceSetting{ReadPreference::SecondaryPreferred}, + false /*isExhaust*/); uassert(6138500, "find one by UUID failed", cursor->init()); BSONObj result = cursor->more() ? cursor->nextSafe() : BSONObj{}; NamespaceString nss = cursor->getNamespaceString(); |