aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-06-20 09:50:43 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-06-20 09:50:43 -0400
commitb334612b8aee9f9a34378982d8938b201dfad323 (patch)
treea47c67522e7886c2aee179cbb260e47218c16d1d /src/backend/storage/file/fd.c
parent877bf52cffe587d33556e6259f610eb932699706 (diff)
downloadpostgresql-b334612b8aee9f9a34378982d8938b201dfad323.tar.gz
postgresql-b334612b8aee9f9a34378982d8938b201dfad323.zip
Pre-beta2 mechanical code beautification.
Run pgindent and pgperltidy. It seems we're still some ways away from all committers doing this automatically. Now that we have a buildfarm animal that will whine about poorly-indented code, we'll try to keep the tree more tidy. Discussion: https://postgr.es/m/3156045.1687208823@sss.pgh.pa.us
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index db39186f058..3c2a2fbef73 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -415,7 +415,7 @@ pg_fsync(int fd)
int
pg_fsync_no_writethrough(int fd)
{
- int rc;
+ int rc;
if (!enableFsync)
return 0;
@@ -456,7 +456,7 @@ pg_fsync_writethrough(int fd)
int
pg_fdatasync(int fd)
{
- int rc;
+ int rc;
if (!enableFsync)
return 0;
@@ -500,6 +500,7 @@ pg_flush_data(int fd, off_t offset, off_t nbytes)
return;
retry:
+
/*
* sync_file_range(SYNC_FILE_RANGE_WRITE), currently linux specific,
* tells the OS that writeback for the specified blocks should be