[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: |