Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit aa80416

Browse files
committed
bugfix for ReadBuffer_common() func
1 parent bad7c8f commit aa80416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,8 @@ ReadBuffer_common(Relation reln, SMgrRelation smgr, char relpersistence,
11271127
}
11281128
}
11291129

1130-
if (PageGetPageLayoutVersion(bufBlock) != PG_PAGE_LAYOUT_VERSION)
1130+
if (PageGetPageLayoutVersion(bufBlock) != PG_PAGE_LAYOUT_VERSION &&
1131+
!PageIsNew((Page) bufBlock))
11311132
{
11321133
Buffer buf = BufferDescriptorGetBuffer(bufHdr);
11331134

0 commit comments

Comments
 (0)