mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Valgrind warnings found after bug#32943 and after merge from -main
into -engines tree. hander::table_share was not updated after changing table->s. sql/ha_partition.cc: Valgrind warning after merge -main -> -engines, after bug#32943 change_table_ptr can happen in a middle of alter table rename/drop/... partition the newly created partitions must get the updated table_share too. sql/sql_base.cc: Bug#32943 was missing a call to change_table_ptr, this was found by valgrind after a merge from -main to -engines.
This commit is contained in:
@@ -747,6 +747,7 @@ void close_handle_and_leave_table_as_lock(TABLE *table)
|
||||
table->db_stat= 0; // Mark file closed
|
||||
release_table_share(table->s, RELEASE_NORMAL);
|
||||
table->s= share;
|
||||
table->file->change_table_ptr(table, table->s);
|
||||
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user