mirror of
https://github.com/postgres/postgres.git
synced 2026-03-22 10:30:21 -04:00
bufmgr: Fix use of wrong variable in GetPrivateRefCountEntrySlow()
Unfortunately, in 30df61990c, 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
This commit is contained in:
parent
547c15f9f8
commit
6322a028fa
1 changed files with 1 additions and 1 deletions
|
|
@ -469,7 +469,7 @@ GetPrivateRefCountEntrySlow(Buffer buffer, bool do_move)
|
|||
free->data = res->data;
|
||||
PrivateRefCountArrayKeys[ReservedRefCountSlot] = buffer;
|
||||
/* update cache for the next lookup */
|
||||
PrivateRefCountEntryLast = match;
|
||||
PrivateRefCountEntryLast = ReservedRefCountSlot;
|
||||
|
||||
ReservedRefCountSlot = -1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue