summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/mariabackup/write_filt.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mariabackup/write_filt.cc b/extra/mariabackup/write_filt.cc
index cf7753bf380..97529fb1726 100644
--- a/extra/mariabackup/write_filt.cc
+++ b/extra/mariabackup/write_filt.cc
@@ -79,7 +79,7 @@ wf_incremental_init(xb_write_filt_ctxt_t *ctxt, char *dst_name,
cp->delta_buf_base = static_cast<byte *>(ut_malloc(buf_size));
memset(cp->delta_buf_base, 0, buf_size);
cp->delta_buf = static_cast<byte *>
- (ut_align(cp->delta_buf_base, UNIV_PAGE_SIZE_MAX));
+ (ut_align(cp->delta_buf_base, cursor->page_size));
/* write delta meta info */
snprintf(meta_name, sizeof(meta_name), "%s%s", dst_name,