summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@mongodb.com>2020-06-18 13:05:30 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-22 21:27:39 +0000
commit96d0a3a985d383473af889dd9a089c44d5f492e2 (patch)
treec90649ff50038b0537a3310e036b697352ac0205
parentbcb0cf270fdbcb6d1cbf9998e29afbfe4cbeebde (diff)
downloadmongo-96d0a3a985d383473af889dd9a089c44d5f492e2.tar.gz
SERVER-48934 Remove unneeded AutoGetCollectionForRead call during oplog truncation that assigns an unwanted ReadSource
-rw-r--r--src/mongo/db/repl/replication_recovery.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_recovery.cpp b/src/mongo/db/repl/replication_recovery.cpp
index 2d363d6a579..a7ed6a8e34b 100644
--- a/src/mongo/db/repl/replication_recovery.cpp
+++ b/src/mongo/db/repl/replication_recovery.cpp
@@ -728,9 +728,6 @@ void ReplicationRecoveryImpl::_truncateOplogIfNeededAndThenClearOplogTruncateAft
}
if (stableTimestamp && !stableTimestamp->isNull() && truncatePoint <= stableTimestamp) {
- AutoGetCollectionForRead oplog(opCtx, NamespaceString::kRsOplogNamespace);
- invariant(oplog.getCollection());
-
LOGV2(21556,
"The oplog truncation point ({truncatePoint}) is equal to or earlier than the stable "
"timestamp ({stableTimestamp}), so truncating after the stable timestamp instead",