Skip to content

Commit 8dbafcb

Browse files
evelynwu88MongoDB Bot
authored andcommitted
SERVER-90176 OplogBufferLocalOplog cursor should not time out (#28076)
GitOrigin-RevId: 313264942af2213fd33d10a3eff14ea147589ad7
1 parent 81e5695 commit 8dbafcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mongo/db/repl/replication_recovery.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ class OplogBufferLocalOplog final : public OplogBuffer {
150150
: BSON("$gte" << _oplogApplicationStartPoint);
151151
FindCommandRequest findRequest{NamespaceString::kRsOplogNamespace};
152152
findRequest.setFilter(BSON("ts" << predicate));
153+
// Don't kill the cursor just because applying a batch oplog takes a long time.
154+
findRequest.setNoCursorTimeout(true);
153155
_cursor = _client->find(std::move(findRequest));
154156

155157
// Check that the first document matches our appliedThrough point then skip it since it's

0 commit comments

Comments
 (0)