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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy