Skip to content

Commit 25b3ddd

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 974f910 commit 25b3ddd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/access/brin/brin_revmap.c

+1
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)