Skip to content

Commit 3eebb33

Browse files
committed
Reverse number of stars used for test_fsync details.
1 parent 431605f commit 3eebb33

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/tools/fsync/test_fsync.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ test_sync(int writes_per_op)
179179
if (writes_per_op == 1)
180180
printf(LABEL_FORMAT, "open_datasync 8k write"
181181
#if PG_O_DIRECT != 0
182-
"**"
182+
"*"
183183
#endif
184184
);
185185
else
186186
printf(LABEL_FORMAT, "2 open_datasync 8k writes"
187187
#if PG_O_DIRECT != 0
188-
"**"
188+
"*"
189189
#endif
190190
);
191191
fflush(stdout);
@@ -211,7 +211,7 @@ test_sync(int writes_per_op)
211211
#if PG_O_DIRECT != 0
212212
if ((tmpfile = open(filename, O_RDWR | O_DSYNC | PG_O_DIRECT, 0)) == -1)
213213
{
214-
printf(NA_FORMAT, "o_direct", "n/a*\n");
214+
printf(NA_FORMAT, "o_direct", "n/a**\n");
215215
fs_warning = true;
216216
}
217217
else
@@ -335,13 +335,13 @@ test_sync(int writes_per_op)
335335
if (writes_per_op == 1)
336336
printf(LABEL_FORMAT, "open_sync 8k write"
337337
#if PG_O_DIRECT != 0
338-
"**"
338+
"*"
339339
#endif
340340
);
341341
else
342342
printf(LABEL_FORMAT, "2 open_sync 8k writes"
343343
#if PG_O_DIRECT != 0
344-
"**"
344+
"*"
345345
#endif
346346
);
347347
fflush(stdout);
@@ -373,7 +373,7 @@ test_sync(int writes_per_op)
373373

374374
if ((tmpfile = open(filename, O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT, 0)) == -1)
375375
{
376-
printf(NA_FORMAT, "o_direct", "n/a*\n");
376+
printf(NA_FORMAT, "o_direct", "n/a**\n");
377377
fs_warning = true;
378378
}
379379
else
@@ -399,16 +399,16 @@ test_sync(int writes_per_op)
399399
printf(NA_FORMAT, "open_sync", "n/a\n");
400400
#endif
401401

402+
#if defined(OPEN_DATASYNC_FLAG) || defined(OPEN_SYNC_FLAG)
403+
if (PG_O_DIRECT != 0)
404+
printf("* This non-direct I/O option is not used by Postgres.\n");
405+
#endif
406+
402407
if (fs_warning)
403408
{
404-
printf("* This file system and its mount options do not support direct\n");
409+
printf("** This file system and its mount options do not support direct\n");
405410
printf("I/O, e.g. ext4 in journaled mode.\n");
406411
}
407-
408-
#if defined(OPEN_DATASYNC_FLAG) || defined(OPEN_SYNC_FLAG)
409-
if (PG_O_DIRECT != 0)
410-
printf("** This non-direct I/O option is not used by Postgres.\n");
411-
#endif
412412
}
413413

414414
void

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