My in-progress patch for SERVER-79736 reveals that making a copy of a QueryStatsEntry is permitted, and it will call the copy constructor which is compiler generated and will not increment the server status metric, but then it will eventually call the destructor which will update the server status metric in the negative direction. So I think this means that if you invoke $queryStats we'll make copies of everything and decrement the counters. My patch makes it worse
It looks like the LRUKeyValue has a size tracker that could be customized to report metrics on its size, but it currently only exposes a customization option for the 'what is the size of this particular thing' part of it.
- is depended on by
-
SERVER-85099 Tracking: Milestone 1
- Closed