Skip to content

Commit 5cd6538

Browse files
committed
Add missing ReleaseBuffer call in BRIN revmap code
I think this particular branch is actually dead, but the analysis to prove that is not trivial, so instead take the weasel way. Reported by Jinyu Zhang Backpatch to 9.5, where BRIN was introduced.
1 parent 5ddc728 commit 5cd6538

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/access/brin/brin_revmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ revmap_physical_extend(BrinRevmap *revmap)
432432
if (needLock)
433433
UnlockRelationForExtension(irel, ExclusiveLock);
434434
LockBuffer(revmap->rm_metaBuf, BUFFER_LOCK_UNLOCK);
435+
ReleaseBuffer(buf);
435436
return;
436437
}
437438
LockBuffer(buf, BUFFER_LOCK_EXCLUSIVE);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy