diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-11-12 12:04:25 -0500 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-12-19 19:22:55 -0500 |
commit | 145078f2e5076fb4a032d36d30b7c71b33706802 (patch) | |
tree | d1909714d54286ae78ed17d404413d630b1633b1 /src/mongo/db/ttl.cpp | |
parent | 51ab5eb0c500d0013ac6265de40ab7dbc3d52131 (diff) | |
download | mongo-145078f2e5076fb4a032d36d30b7c71b33706802.tar.gz |
SERVER-38091 IndexCatalog iterators and accessors should return const entries
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r-- | src/mongo/db/ttl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp index 99a1ef15a9c..0ad9cb0af35 100644 --- a/src/mongo/db/ttl.cpp +++ b/src/mongo/db/ttl.cpp @@ -207,7 +207,7 @@ private: return; } - IndexDescriptor* desc = collection->getIndexCatalog()->findIndexByName(opCtx, name); + const IndexDescriptor* desc = collection->getIndexCatalog()->findIndexByName(opCtx, name); if (!desc) { LOG(1) << "index not found (index build in progress? index dropped?), skipping " << "ttl job for: " << idx; |