mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Reverse number of stars used for test_fsync details.
This commit is contained in:
parent
431605f666
commit
3eebb33ddd
@ -179,13 +179,13 @@ test_sync(int writes_per_op)
|
|||||||
if (writes_per_op == 1)
|
if (writes_per_op == 1)
|
||||||
printf(LABEL_FORMAT, "open_datasync 8k write"
|
printf(LABEL_FORMAT, "open_datasync 8k write"
|
||||||
#if PG_O_DIRECT != 0
|
#if PG_O_DIRECT != 0
|
||||||
"**"
|
"*"
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
printf(LABEL_FORMAT, "2 open_datasync 8k writes"
|
printf(LABEL_FORMAT, "2 open_datasync 8k writes"
|
||||||
#if PG_O_DIRECT != 0
|
#if PG_O_DIRECT != 0
|
||||||
"**"
|
"*"
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -211,7 +211,7 @@ test_sync(int writes_per_op)
|
|||||||
#if PG_O_DIRECT != 0
|
#if PG_O_DIRECT != 0
|
||||||
if ((tmpfile = open(filename, O_RDWR | O_DSYNC | PG_O_DIRECT, 0)) == -1)
|
if ((tmpfile = open(filename, O_RDWR | O_DSYNC | PG_O_DIRECT, 0)) == -1)
|
||||||
{
|
{
|
||||||
printf(NA_FORMAT, "o_direct", "n/a*\n");
|
printf(NA_FORMAT, "o_direct", "n/a**\n");
|
||||||
fs_warning = true;
|
fs_warning = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -335,13 +335,13 @@ test_sync(int writes_per_op)
|
|||||||
if (writes_per_op == 1)
|
if (writes_per_op == 1)
|
||||||
printf(LABEL_FORMAT, "open_sync 8k write"
|
printf(LABEL_FORMAT, "open_sync 8k write"
|
||||||
#if PG_O_DIRECT != 0
|
#if PG_O_DIRECT != 0
|
||||||
"**"
|
"*"
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
printf(LABEL_FORMAT, "2 open_sync 8k writes"
|
printf(LABEL_FORMAT, "2 open_sync 8k writes"
|
||||||
#if PG_O_DIRECT != 0
|
#if PG_O_DIRECT != 0
|
||||||
"**"
|
"*"
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -373,7 +373,7 @@ test_sync(int writes_per_op)
|
|||||||
|
|
||||||
if ((tmpfile = open(filename, O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT, 0)) == -1)
|
if ((tmpfile = open(filename, O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT, 0)) == -1)
|
||||||
{
|
{
|
||||||
printf(NA_FORMAT, "o_direct", "n/a*\n");
|
printf(NA_FORMAT, "o_direct", "n/a**\n");
|
||||||
fs_warning = true;
|
fs_warning = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -399,16 +399,16 @@ test_sync(int writes_per_op)
|
|||||||
printf(NA_FORMAT, "open_sync", "n/a\n");
|
printf(NA_FORMAT, "open_sync", "n/a\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (fs_warning)
|
|
||||||
{
|
|
||||||
printf("* This file system and its mount options do not support direct\n");
|
|
||||||
printf("I/O, e.g. ext4 in journaled mode.\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(OPEN_DATASYNC_FLAG) || defined(OPEN_SYNC_FLAG)
|
#if defined(OPEN_DATASYNC_FLAG) || defined(OPEN_SYNC_FLAG)
|
||||||
if (PG_O_DIRECT != 0)
|
if (PG_O_DIRECT != 0)
|
||||||
printf("** This non-direct I/O option is not used by Postgres.\n");
|
printf("* This non-direct I/O option is not used by Postgres.\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (fs_warning)
|
||||||
|
{
|
||||||
|
printf("** This file system and its mount options do not support direct\n");
|
||||||
|
printf("I/O, e.g. ext4 in journaled mode.\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user