diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2021-04-23 01:07:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-23 02:13:16 +0000 |
commit | 7b10322687bab4b0b0bba610b69a4dd5ecb99117 (patch) | |
tree | 3f1573afef6ac96aed70f8b1978da433bb38df08 /src/mongo/db/ttl.cpp | |
parent | a385b13ad00b6c7d52e174a1e39161dde3930765 (diff) | |
download | mongo-7b10322687bab4b0b0bba610b69a4dd5ecb99117.tar.gz |
SERVER-16049 Replicate capped collection deletes
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r-- | src/mongo/db/ttl.cpp | 3 |
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", |