summaryrefslogtreecommitdiff
path: root/storage/xtradb/log/log0recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/log/log0recv.c')
-rw-r--r--storage/xtradb/log/log0recv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/xtradb/log/log0recv.c b/storage/xtradb/log/log0recv.c
index e0952a1ed0b..0c0b83e34b7 100644
--- a/storage/xtradb/log/log0recv.c
+++ b/storage/xtradb/log/log0recv.c
@@ -2980,9 +2980,10 @@ recv_recovery_from_checkpoint_start_func(
#endif /* UNIV_LOG_ARCHIVE */
byte* buf;
byte* log_hdr_buf;
- byte log_hdr_buf_base[LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE];
+ byte *log_hdr_buf_base;
ulint err;
+ log_hdr_buf_base= alloca(LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE);
log_hdr_buf = ut_align(log_hdr_buf_base, OS_FILE_LOG_BLOCK_SIZE);
#ifdef UNIV_LOG_ARCHIVE