We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a0fd2 commit 3ae28ceCopy full SHA for 3ae28ce
contrib/pg_test_fsync/pg_test_fsync.c
@@ -391,16 +391,15 @@ test_open_syncs(void)
391
test_open_sync("16 1k open_sync writes", 1);
392
}
393
394
-
+/*
395
+ * Test open_sync with different size files
396
+ */
397
static void
398
test_open_sync(const char *msg, int writes_size)
399
{
400
+#ifdef OPEN_SYNC_FLAG
401
int tmpfile, ops, writes;
402
-/*
- * Test open_sync with different size files
- */
403
-#ifdef OPEN_SYNC_FLAG
404
if ((tmpfile = open(filename, O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT, 0)) == -1)
405
printf(NA_FORMAT, "o_direct", "n/a**\n");
406
else
0 commit comments