Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite46d274

Browse files
author
Sokolov Yura
committed
CFS fd.c: fix rewrite of uncompressed page detection.
1 parent477c7f4 commite46d274

File tree

1 file changed

+2
-1
lines changed
  • src/backend/storage/file

1 file changed

+2
-1
lines changed

‎src/backend/storage/file/fd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,6 @@ FileWrite(File file, char *buffer, int amount)
20562056
if (CFS_INODE_SIZE(inode)!=BLCKSZ)
20572057
{
20582058
pos=cfs_alloc_page(map,CFS_INODE_SIZE(inode),BLCKSZ);
2059-
inode=CFS_INODE(BLCKSZ,pos);
20602059
}
20612060
else
20622061
{
@@ -2066,6 +2065,8 @@ FileWrite(File file, char *buffer, int amount)
20662065
*/
20672066
pos=CFS_INODE_OFFS(inode);
20682067
}
2068+
/* we need to do it in both cases to clear flag set by gc */
2069+
inode=CFS_INODE(BLCKSZ,pos);
20692070
}
20702071
seekPos=lseek(vfdP->fd,pos,SEEK_SET);
20712072
Assert(seekPos== (off_t)pos);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp