From b5ed21998c13f09fd733c87a224e3fe27e41d34d Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 8 Jul 2013 13:01:11 +0300 Subject: [PATCH] Fix pg_test_fsync, broken by xloginsert scaling patch. I didn't realize that ALIGNOF_XLOG_BUFFER was used in pg_test_fsync. --- contrib/pg_test_fsync/pg_test_fsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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