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

Commit29bab70

Browse files
author
Sokolov Yura
committed
Revert "cfs: prefsync original file without lock"
Looks like OS fsync it better :-)This reverts commit3b855b0.
1 parent220f637 commit29bab70

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-
gotoCleanup;
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)

[8]ページ先頭

©2009-2025 Movatter.jp