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

Commit 8d4046d

Browse files
author
Sokolov Yura
committed
cfs: wider writeback on gc
1 parent 9bf3d8b commit 8d4046d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/backend/storage/file/cfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ static bool cfs_gc_file(char* map_path, GC_CALL_KIND background)
923923

924924
/* xfs doesn't like if writeback performed closer than 128k to
925925
* file end */
926-
if (writeback + 2*128*1024 < newSize)
926+
if (writeback + 16*1024*1024 < newSize)
927927
{
928928
uint32 newwb = (newSize - 128*1024) & ~(128*1024-1);
929929
pg_flush_data(fd2, writeback, newwb - writeback);

0 commit comments

Comments
 (0)