[SERVER-38091] IndexCatalogIterator should return const entries Created: 12/Nov/18  Updated: 29/Oct/23  Resolved: 20/Dec/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.7

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2018-12-17, Storage NYC 2018-12-31
Participants:

 Description   

The iterator current returns pointers that allow callers to happily access and modify the underlying IndexAccessMethod. In an attempt to prevent that behavior, which bypasses the IndexCatalog, we should have next() return a const pointer.



 Comments   
Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams'}

Message: SERVER-38091 IndexCatalog iterators and accessors should return const entries
Branch: master
https://github.com/mongodb/mongo/commit/145078f2e5076fb4a032d36d30b7c71b33706802

Generated at Thu Feb 08 04:47:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.