[SERVER-37592] Clear and regenerate _wildcardIndexDiscriminators when updating the plan cache discriminators Created: 12/Oct/18  Updated: 29/Oct/23  Resolved: 12/Oct/18

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Querying
Affects Version/s: 4.1 Required
Fix Version/s: 4.1.5

Type: Bug Priority: Major - P3
Reporter: Bernard Gorman Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2018-10-22
Participants:
Linked BF Score: 56

 Description   

When an index is created or destroyed, we update the list of discriminators in the plan cache to reflect the new set of indexes. Unlike standard indexes, however, for wildcard indexes we only ever add new entries into the discriminator set. This means that the discriminators for wildcard indexes that have been dropped are incorrectly retained.



 Comments   
Comment by Githook User [ 12/Oct/18 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-37592 Clear and regenerate _wildcardIndexDiscriminators when updating plan cache discriminators
Branch: master
https://github.com/mongodb/mongo/commit/47498446e41980899fe43fced08b0f8f7e27e870

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