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

Commit 54809fc

Browse files
author
Sokolov Yura
committed
cfs: disable fsync if fsync is globally disabled
1 parent 29bab70 commit 54809fc

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

src/backend/storage/file/cfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ void cfs_initialize()
430430
}
431431
int cfs_msync(FileMap* map)
432432
{
433+
if (!enableFsync)
434+
return 0;
433435
#ifdef WIN32
434436
return FlushViewOfFile(map, sizeof(FileMap)) ? 0 : -1;
435437
#else

0 commit comments

Comments
 (0)