diff --git a/contrib/pg_test_fsync/pg_test_fsync.c b/contrib/pg_test_fsync/pg_test_fsync.c index 53f600f593..78c9485915 100644 --- a/contrib/pg_test_fsync/pg_test_fsync.c +++ b/contrib/pg_test_fsync/pg_test_fsync.c @@ -206,7 +206,7 @@ prepare_buf(void) for (ops = 0; ops < XLOG_SEG_SIZE; ops++) full_buf[ops] = random(); - buf = (char *) TYPEALIGN(ALIGNOF_XLOG_BUFFER, full_buf); + buf = (char *) TYPEALIGN(XLOG_BLCKSZ, full_buf); } static void