mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 03:21:24 +03:00
Mention which fsync methods are unavailable.
This commit is contained in:
parent
69138a9429
commit
5ddecd1e27
@ -80,7 +80,7 @@ int main(int argc, char *argv[])
|
|||||||
print_elapse(start_t, elapse_t);
|
print_elapse(start_t, elapse_t);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
printf("\nTest file sync methods\n");
|
printf("\nTest file sync methods:\n");
|
||||||
|
|
||||||
#ifdef OPEN_DATASYNC_FLAG
|
#ifdef OPEN_DATASYNC_FLAG
|
||||||
/* open_dsync, write */
|
/* open_dsync, write */
|
||||||
@ -93,8 +93,10 @@ int main(int argc, char *argv[])
|
|||||||
unlink("/var/tmp/test_fsync.out");
|
unlink("/var/tmp/test_fsync.out");
|
||||||
printf("open o_dsync, write ");
|
printf("open o_dsync, write ");
|
||||||
print_elapse(start_t, elapse_t);
|
print_elapse(start_t, elapse_t);
|
||||||
printf("\n");
|
#else
|
||||||
|
printf("o_dsync unavailable ");
|
||||||
#endif
|
#endif
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
/* open_fsync, write */
|
/* open_fsync, write */
|
||||||
gettimeofday(&start_t, NULL);
|
gettimeofday(&start_t, NULL);
|
||||||
@ -120,8 +122,10 @@ int main(int argc, char *argv[])
|
|||||||
unlink("/var/tmp/test_fsync.out");
|
unlink("/var/tmp/test_fsync.out");
|
||||||
printf("write, fdatasync ");
|
printf("write, fdatasync ");
|
||||||
print_elapse(start_t, elapse_t);
|
print_elapse(start_t, elapse_t);
|
||||||
printf("\n");
|
#else
|
||||||
|
printf("fdatasync unavailable ");
|
||||||
#endif
|
#endif
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
/* write, fsync, close */
|
/* write, fsync, close */
|
||||||
gettimeofday(&start_t, NULL);
|
gettimeofday(&start_t, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user