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

Commit 29bab70

Browse files
author
Sokolov Yura
committed
Revert "cfs: prefsync original file without lock"
Looks like OS fsync it better :-) This reverts commit 3b855b0.
1 parent 220f637 commit 29bab70

File tree

1 file changed

+0
-7
lines changed
  • src/backend/storage/file

1 file changed

+0
-7
lines changed

src/backend/storage/file/cfs.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -990,13 +990,6 @@ static bool cfs_gc_file(char* map_path, GC_CALL_KIND background)
990990
newUsed = newSize;
991991

992992
/* Persist bigger part of copy to not do it under lock */
993-
/* and persist previous file, cause it will be fsynced in durable rename */
994-
if (pg_fsync(fd) < 0)
995-
{
996-
elog(WARNING, "CFS failed to sync file %s: %m", file_bck_path);
997-
goto Cleanup;
998-
}
999-
1000993
if (pg_fsync(fd2) < 0)
1001994
{
1002995
elog(WARNING, "CFS failed to sync file %s: %m", file_bck_path);

0 commit comments

Comments
 (0)