diff options
author | Josef Ahmad <josef.ahmad@mongodb.com> | 2021-10-25 10:52:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-25 11:38:11 +0000 |
commit | 11e1a414386c0d4c670dfc306b8fdfd52a9e68e0 (patch) | |
tree | 8510195e51449a0c6db4ae3ae0419f1afde79e5b /src/mongo/db/ttl.cpp | |
parent | 3b168ad0f99534125d7457aa34a743a3cdce0765 (diff) | |
download | mongo-11e1a414386c0d4c670dfc306b8fdfd52a9e68e0.tar.gz |
SERVER-60537 Support clustering non-explicitly replicated collections by arbitrary keys
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r-- | src/mongo/db/ttl.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp index 24c3fac00f6..81e4b4df597 100644 --- a/src/mongo/db/ttl.cpp +++ b/src/mongo/db/ttl.cpp @@ -467,7 +467,7 @@ private: } /* - * Removes expired documents from a collection clustered by _id using a bounded collection scan. + * Removes expired documents from a clustered collection using a bounded collection scan. * On time-series buckets collections, TTL operates on type 'ObjectId'. On general purpose * collections, TTL operates on type 'Date'. */ @@ -476,7 +476,7 @@ private: const CollectionPtr& collection) { const auto& collOptions = collection->getCollectionOptions(); uassert(5400701, - "collection is not clustered by _id but is described as being TTL", + "collection is not clustered but is described as being TTL", collOptions.clusteredIndex); invariant(collection->isClustered()); @@ -487,10 +487,8 @@ private: return; } - LOGV2_DEBUG(5400704, - 1, - "running TTL job for collection clustered by _id", - logAttrs(collection->ns())); + LOGV2_DEBUG( + 5400704, 1, "running TTL job for clustered collection", logAttrs(collection->ns())); const auto startId = makeCollScanStartBound(collection, Date_t::min()); |