Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-30089 Metrics not incremented for 1st iteration in buf_LRU_free_…
…from_common_LRU_list() In commit a03dd94 as well as mysql/mysql-server@6ef8c34 the iterations were changed so that the variable "scanned" would remain 0 when the first list item qualifies for eviction. buf_LRU_free_from_unzip_LRU_list(), buf_LRU_free_from_common_LRU_list(): Increment "scanned" when a block can be freed. buf_LRU_free_from_common_LRU_list(): Remove a redundant condition. Whenever this function is invoked, buf_pool.LRU should be nonempty, hence something should always be scanned. Thanks to Jean-François Gagné for reporting this.
- Loading branch information