From 66de5e2b60377e42040b9655049de11b8a8098ca Mon Sep 17 00:00:00 2001 From: Vlad Lesin Date: Tue, 27 Oct 2020 20:03:41 +0300 Subject: MDEV-24026: InnoDB: Failing assertion: os_total_large_mem_allocated >= size upon incremental backup Preliminary fix without test case. --- extra/mariabackup/xtrabackup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index 668a355f0fa..93a4896ec94 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -2560,6 +2560,7 @@ static my_bool xtrabackup_copy_datafile(fil_node_t *node, uint thread_n, xb_read_filt_t *read_filter; my_bool rc = FALSE; + memset(&write_filt_ctxt, 0, sizeof(xb_write_filt_ctxt_t)); /* Get the name and the path for the tablespace. node->name always contains the path (which may be absolute for remote tablespaces in 5.6+). space->name contains the tablespace name in the form @@ -2605,7 +2606,6 @@ static my_bool xtrabackup_copy_datafile(fil_node_t *node, uint thread_n, sizeof dst_name - 1); dst_name[sizeof dst_name - 1] = '\0'; - memset(&write_filt_ctxt, 0, sizeof(xb_write_filt_ctxt_t)); ut_a(write_filter.process != NULL); if (write_filter.init != NULL && -- cgit v1.2.1