diff options
author | Daniel Gómez Ferro <daniel.gomezferro@mongodb.com> | 2022-02-07 15:29:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-07 18:50:45 +0000 |
commit | 7a2d86c376488cc756c0325e6edaf3406a86ec5d (patch) | |
tree | 660a74392777be30a2d629bde1951b21c3a61883 /src/mongo/db/ttl.cpp | |
parent | 59e19dc9bff797fc1cff45d56942e5e61da36f1a (diff) | |
download | mongo-7a2d86c376488cc756c0325e6edaf3406a86ec5d.tar.gz |
SERVER-61939 Tighter bounds for clustered collection scans
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r-- | src/mongo/db/ttl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp index 78c77202d75..e02c1f8fc06 100644 --- a/src/mongo/db/ttl.cpp +++ b/src/mongo/db/ttl.cpp @@ -446,24 +446,24 @@ private: * delete entries of type 'ObjectId'. All other collections must only delete entries of type * 'Date'. */ - RecordId makeCollScanEndBound(const CollectionPtr& collection, Date_t expirationDate) { + RecordIdBound makeCollScanEndBound(const CollectionPtr& collection, Date_t expirationDate) { if (collection->getTimeseriesOptions()) { auto endOID = OID(); endOID.init(expirationDate, true /* max */); - return record_id_helpers::keyForOID(endOID); + return RecordIdBound(record_id_helpers::keyForOID(endOID)); } - return record_id_helpers::keyForDate(expirationDate); + return RecordIdBound(record_id_helpers::keyForDate(expirationDate)); } - RecordId makeCollScanStartBound(const CollectionPtr& collection, const Date_t startDate) { + RecordIdBound makeCollScanStartBound(const CollectionPtr& collection, const Date_t startDate) { if (collection->getTimeseriesOptions()) { auto startOID = OID(); startOID.init(startDate, false /* max */); - return record_id_helpers::keyForOID(startOID); + return RecordIdBound(record_id_helpers::keyForOID(startOID)); } - return record_id_helpers::keyForDate(startDate); + return RecordIdBound(record_id_helpers::keyForDate(startDate)); } /* |