mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 22:59:54 -04:00
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.
This commit is contained in:
parent
5ddc72887a
commit
5cd6538345
1 changed files with 1 additions and 0 deletions
|
|
@ -432,6 +432,7 @@ revmap_physical_extend(BrinRevmap *revmap)
|
|||
if (needLock)
|
||||
UnlockRelationForExtension(irel, ExclusiveLock);
|
||||
LockBuffer(revmap->rm_metaBuf, BUFFER_LOCK_UNLOCK);
|
||||
ReleaseBuffer(buf);
|
||||
return;
|
||||
}
|
||||
LockBuffer(buf, BUFFER_LOCK_EXCLUSIVE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue