]> git.ipfire.org Git - thirdparty/postgresql.git/commit
bufmgr: Fix use of wrong variable in GetPrivateRefCountEntrySlow()
authorAndres Freund <andres@anarazel.de>
Wed, 11 Mar 2026 21:26:38 +0000 (17:26 -0400)
committerAndres Freund <andres@anarazel.de>
Wed, 11 Mar 2026 21:52:21 +0000 (17:52 -0400)
commit6322a028fa437669022473be8af39bbd89b644c3
treefe4efada3cafd82cc574f9ae3b7e538d3de8fbbe
parent547c15f9f8764af7b030a3b67dcbddab639da13c
bufmgr: Fix use of wrong variable in GetPrivateRefCountEntrySlow()

Unfortunately, in 30df61990c67, I made GetPrivateRefCountEntrySlow() set a
wrong cache hint when moving entries from the hash table to the faster array.
There are no correctness concerns due to this, just an unnecessary loss of
performance.

Noticed while testing the index prefetching patch.

Discussion: https://postgr.es/m/CAH2-Wz=g=JTSyDB4UtB5su2ZcvsS7VbP+ZMvvaG6ABoCb+s8Lw@mail.gmail.com
src/backend/storage/buffer/bufmgr.c