Content-Length: 255661 | pFad | http://github.com/postgrespro/postgres_cluster/commit/54809fc8ac877dfcfff2a318e7bc3f9675385ae5

87 cfs: disable fsync if fsync is globally disabled · postgrespro/postgres_cluster@54809fc · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/54809fc8ac877dfcfff2a318e7bc3f9675385ae5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy