summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rollback_source_impl.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2022-06-10 21:50:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-10 22:53:08 +0000
commitf6b83615b8a3435193e501424bf4b9b91f9e8a1d (patch)
treec97eb170d89b19b03392e8e5ddd1671982b2fb1a /src/mongo/db/repl/rollback_source_impl.cpp
parent8fca1562eae7c9441c664a5868c220b4b2aad050 (diff)
downloadmongo-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.cpp3
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();