Skip to content

Commit fdca827

Browse files
author
Commitfest Bot
committed
[CF 5615] Corrupted FSM page is not saved after zeroing.
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5615 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/[email protected] Author(s): Anton Melnikov
2 parents 90260e2 + c5e9b48 commit fdca827

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/storage/freespace/freespace.c

+3
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,10 @@ fsm_readbuf(Relation rel, FSMAddress addr, bool extend)
614614
{
615615
LockBuffer(buf, BUFFER_LOCK_EXCLUSIVE);
616616
if (PageIsNew(BufferGetPage(buf)))
617+
{
617618
PageInit(BufferGetPage(buf), BLCKSZ, 0);
619+
MarkBufferDirty(buf);
620+
}
618621
LockBuffer(buf, BUFFER_LOCK_UNLOCK);
619622
}
620623
return buf;

0 commit comments

Comments
 (0)