summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r--src/mongo/db/repl/oplog.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp
index 0f1d20a7ef7..5d3a741ee1b 100644
--- a/src/mongo/db/repl/oplog.cpp
+++ b/src/mongo/db/repl/oplog.cpp
@@ -1989,13 +1989,6 @@ void initTimestampFromOplog(OperationContext* opCtx, const NamespaceString& oplo
}
}
-void oplogCheckCloseDatabase(OperationContext* opCtx, const Database* db) {
- invariant(opCtx->lockState()->isW());
- if (db->name() == "local") {
- LocalOplogInfo::get(opCtx)->resetCollection();
- }
-}
-
void clearLocalOplogPtr() {
LocalOplogInfo::get(getGlobalServiceContext())->resetCollection();
}