We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c95df commit cde0db2Copy full SHA for cde0db2
src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
@@ -837,7 +837,7 @@ void WiredTigerRecordStore::reclaimOplog(OperationContext* opCtx) {
837
// between records, the truncate marker check is not sufficient.
838
CursorKey truncateUpToKey = makeCursorKey(truncateMarker->lastRecord, _keyFormat);
839
setKey(cursor, &truncateUpToKey);
840
- int cmp;
+ int cmp = 0;
841
ret = wiredTigerPrepareConflictRetry(opCtx,
842
[&] { return cursor->search_near(cursor, &cmp); });
843
invariantWTOK(ret, cursor->session);
0 commit comments