summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2021-04-23 01:07:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-23 02:13:16 +0000
commit7b10322687bab4b0b0bba610b69a4dd5ecb99117 (patch)
tree3f1573afef6ac96aed70f8b1978da433bb38df08 /src/mongo/db/ttl.cpp
parenta385b13ad00b6c7d52e174a1e39161dde3930765 (diff)
downloadmongo-7b10322687bab4b0b0bba610b69a4dd5ecb99117.tar.gz
SERVER-16049 Replicate capped collection deletes
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r--src/mongo/db/ttl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index 0e112d6cbf6..aed09894b6a 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -254,6 +254,9 @@ private:
if (!coll || coll->uuid() != uuid)
return;
+ // TTL indexes are not compatible with capped collections.
+ invariant(!coll->isCapped());
+
if (MONGO_unlikely(hangTTLMonitorWithLock.shouldFail())) {
LOGV2(22534,
"Hanging due to hangTTLMonitorWithLock fail point",