Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)