diff options
-rw-r--r-- | src/mongo/db/repl/rollback_source_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/repl/rollback_source_impl.cpp b/src/mongo/db/repl/rollback_source_impl.cpp index 4b7c7e2fff1..21d54f687f1 100644 --- a/src/mongo/db/repl/rollback_source_impl.cpp +++ b/src/mongo/db/repl/rollback_source_impl.cpp @@ -95,6 +95,7 @@ std::pair<BSONObj, NamespaceString> RollbackSourceImpl::findOneByUUID(const std: std::make_unique<DBClientCursor>(_getConnection(), std::move(findRequest), ReadPreferenceSetting{ReadPreference::SecondaryPreferred}); + uassert(6138500, "find one by UUID failed", cursor->init()); BSONObj result = cursor->more() ? cursor->nextSafe() : BSONObj{}; NamespaceString nss = cursor->getNamespaceString(); return {std::move(result), std::move(nss)}; |