aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pg_test_fsync/pg_test_fsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_test_fsync/pg_test_fsync.c b/contrib/pg_test_fsync/pg_test_fsync.c
index 53f600f593d..78c94859159 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