Re: A small problem when rehashing catalog cache

2025-12-16 Thread cca5507
> This deserves a comment, at least. How about adding this comment: We keep recently searched entries at the front of the list, so we should call dlist_push_tail() here. -- Regards, ChangAo Chen

Re: A small problem when rehashing catalog cache

2025-12-16 Thread Michael Paquier
On Wed, Dec 17, 2025 at 11:12:46AM +0800, cca5507 wrote: > Although this does not affect correctness, I'd like to propose a > patch to fix it. That's an interesting point. Indeed, the code bothers putting a fresh matching entry at the beginning of a bucket, and the code does the opposite when mov

Re: A small problem when rehashing catalog cache

2025-12-16 Thread cca5507
Hi, Although this does not affect correctness, I'd like to propose a patch to fix it. -- Regards, ChangAo Chen v1-0001-Fix-unexpected-reversal-of-the-list-during-rehash.patch Description: Binary data