mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
- Set tdbp to NULL when ignored
modified: storage/connect/ha_connect.cc
This commit is contained in:
parent
5ac8c8bea6
commit
35f813143b
1 changed files with 9 additions and 4 deletions
|
@ -3014,10 +3014,15 @@ int ha_connect::external_lock(THD *thd, int lock_type)
|
|||
// This can NOT be called without open called first, but
|
||||
// the table can have been closed since then
|
||||
} else if (!tdbp || xp->CheckQuery(valid_query_id) || xmod != newmode) {
|
||||
// If this is called by a later query, the table may have
|
||||
// been already closed and the tdbp is not valid anymore.
|
||||
if (tdbp && xp->last_query_id == valid_query_id)
|
||||
rc= CloseTable(g);
|
||||
if (tdbp) {
|
||||
// If this is called by a later query, the table may have
|
||||
// been already closed and the tdbp is not valid anymore.
|
||||
if (xp->last_query_id == valid_query_id)
|
||||
rc= CloseTable(g);
|
||||
else
|
||||
tdbp= NULL;
|
||||
|
||||
}// endif tdbp
|
||||
|
||||
xmod= newmode;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue