mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
A follow-up fix for Bug#29431 "killing an insert delayed thread causes
crash" in 5.1 sql/sql_insert.cc: Additional safety fix: do not assume we already have a share in get_local_table.
This commit is contained in:
parent
1e9bdcfbcd
commit
6c24dd7f0c
1 changed files with 2 additions and 1 deletions
|
|
@ -1961,7 +1961,7 @@ TABLE *Delayed_insert::get_local_table(THD* client_thd)
|
|||
my_ptrdiff_t adjust_ptrs;
|
||||
Field **field,**org_field, *found_next_number_field;
|
||||
TABLE *copy;
|
||||
TABLE_SHARE *share= table->s;
|
||||
TABLE_SHARE *share;
|
||||
uchar *bitmap;
|
||||
DBUG_ENTER("Delayed_insert::get_local_table");
|
||||
|
||||
|
|
@ -1985,6 +1985,7 @@ TABLE *Delayed_insert::get_local_table(THD* client_thd)
|
|||
goto error;
|
||||
}
|
||||
}
|
||||
share= table->s;
|
||||
|
||||
/*
|
||||
Allocate memory for the TABLE object, the field pointers array, and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue