diff options
author | Louis Williams <louis.williams@mongodb.com> | 2021-04-09 14:05:18 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-09 19:03:34 +0000 |
commit | da7c4d8cdc446b50826455fbd20c08b55b31e897 (patch) | |
tree | d396ee39a185e53a6afb2da8c3f386a54232e261 /src/mongo/db/ttl.cpp | |
parent | 61d796c8dd5b25521e273fcb2d88cd91e37688d6 (diff) | |
download | mongo-da7c4d8cdc446b50826455fbd20c08b55b31e897.tar.gz |
SERVER-55779 Clustered collections should store RecordIds as KeyString
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r-- | src/mongo/db/ttl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp index 547caa92b5a..0e82868891d 100644 --- a/src/mongo/db/ttl.cpp +++ b/src/mongo/db/ttl.cpp @@ -49,6 +49,7 @@ #include "mongo/db/namespace_string.h" #include "mongo/db/ops/insert.h" #include "mongo/db/query/internal_plans.h" +#include "mongo/db/record_id_helpers.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/repl/tenant_migration_access_blocker_registry.h" #include "mongo/db/service_context.h" @@ -470,7 +471,8 @@ private: // timestamp or lower. auto endOID = OID(); endOID.init(expirationDate, true /* max */); - const auto endId = RecordId(endOID.view().view(), OID::kOIDSize); + + const auto endId = record_id_helpers::keyForOID(endOID); auto params = std::make_unique<DeleteStageParams>(); params->isMulti = true; |