Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3eebb33

Browse files
committed
Reverse number of stars used for test_fsync details.
1 parent431605f commit3eebb33

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
#ifPG_O_DIRECT!=0
182-
"**"
182+
"*"
183183
#endif
184184
);
185185
else
186186
printf(LABEL_FORMAT,"2 open_datasync 8k writes"
187187
#ifPG_O_DIRECT!=0
188-
"**"
188+
"*"
189189
#endif
190190
);
191191
fflush(stdout);
@@ -211,7 +211,7 @@ test_sync(int writes_per_op)
211211
#ifPG_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
#ifPG_O_DIRECT!=0
338-
"**"
338+
"*"
339339
#endif
340340
);
341341
else
342342
printf(LABEL_FORMAT,"2 open_sync 8k writes"
343343
#ifPG_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)

[8]ページ先頭

©2009-2025 Movatter.jp