diff options
author | Benety Goh <benety@mongodb.com> | 2022-08-26 08:08:11 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-26 13:06:53 +0000 |
commit | cc3ae631bce7943fbda5182ff3b9d93d1125be40 (patch) | |
tree | ff8dd8dc8b6f0926d54c2b551c9d3fa99c27198f /src/mongo/db/catalog/collection_impl.cpp | |
parent | acf81f84dabf486f74a84b99f04cd17efa35424f (diff) | |
download | mongo-cc3ae631bce7943fbda5182ff3b9d93d1125be40.tar.gz |
SERVER-68477 include 'expireAfterSeconds' type information when registering TTL indexes with the TTLCollectionCache
Diffstat (limited to 'src/mongo/db/catalog/collection_impl.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_impl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp index 57ac56ebc4b..1f37bb989a0 100644 --- a/src/mongo/db/catalog/collection_impl.cpp +++ b/src/mongo/db/catalog/collection_impl.cpp @@ -409,11 +409,11 @@ void CollectionImpl::init(OperationContext* opCtx) { if (opCtx->lockState()->inAWriteUnitOfWork()) { opCtx->recoveryUnit()->onCommit([svcCtx, uuid](auto ts) { TTLCollectionCache::get(svcCtx).registerTTLInfo( - uuid, TTLCollectionCache::ClusteredId{}); + uuid, TTLCollectionCache::Info{TTLCollectionCache::ClusteredId{}}); }); } else { - TTLCollectionCache::get(svcCtx).registerTTLInfo(uuid, - TTLCollectionCache::ClusteredId{}); + TTLCollectionCache::get(svcCtx).registerTTLInfo( + uuid, TTLCollectionCache::Info{TTLCollectionCache::ClusteredId{}}); } } } |