aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-07-08 13:01:11 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-07-08 13:04:07 +0300
commitb5ed21998c13f09fd733c87a224e3fe27e41d34d (patch)
tree3701fa8e413dc7790ca9f41371072b35e98a5427
parent9a20a9b21baa819df1760b36f3c36f25d11fc27b (diff)
downloadpostgresql-b5ed21998c13f09fd733c87a224e3fe27e41d34d.tar.gz
postgresql-b5ed21998c13f09fd733c87a224e3fe27e41d34d.zip
Fix pg_test_fsync, broken by xloginsert scaling patch.
I didn't realize that ALIGNOF_XLOG_BUFFER was used in pg_test_fsync.
-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