MDEV-27312 LeakSanitizer error in trx_mod_table_time_t::start_bulk_insert

  - InnoDB fails to apply the bulk insert operation for the stats
table during DDL. During create table, InnoDB does dict_stats_save()
and freshly insert into innodb_table_stats and innodb_index_stats
table.
parent 03ed2e9d
/***************************************************************************** /*****************************************************************************
Copyright (c) 2009, 2019, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 2009, 2019, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 2021, MariaDB Corporation. Copyright (c) 2015, 2022, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -3262,6 +3262,11 @@ dict_stats_save( ...@@ -3262,6 +3262,11 @@ dict_stats_save(
} }
} }
ret= trx->bulk_insert_apply();
if (ret != DB_SUCCESS) {
goto rollback_and_exit;
}
trx->commit(); trx->commit();
goto free_and_exit; goto free_and_exit;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment