From 3c9d91f8e408339ba2ecfdf1c34cb93b4ed6a926 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Fri, 30 Jun 2017 15:48:52 -0400 Subject: SERVER-29685 do not process ttl indexes on drop-pending collections --- src/mongo/db/ttl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mongo/db/ttl.cpp') diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp index 59599f109c7..61c61ddbcb5 100644 --- a/src/mongo/db/ttl.cpp +++ b/src/mongo/db/ttl.cpp @@ -170,6 +170,9 @@ private: */ void doTTLForIndex(OperationContext* opCtx, BSONObj idx) { const NamespaceString collectionNSS(idx["ns"].String()); + if (collectionNSS.isDropPendingNamespace()) { + return; + } if (!userAllowedWriteNS(collectionNSS).isOK()) { error() << "namespace '" << collectionNSS << "' doesn't allow deletes, skipping ttl job for: " << idx; -- cgit v1.2.1