diff options
author | davi@moksha.local <> | 2007-08-27 10:19:58 -0300 |
---|---|---|
committer | davi@moksha.local <> | 2007-08-27 10:19:58 -0300 |
commit | 769cd00e13c00f6b5483ce4ca625e28077ade24f (patch) | |
tree | 5771cd9fb43a6f45a4fe36e3301902abb4186989 /sql/lock.cc | |
parent | 1013eb57ce0f6c03c86a78e2ea800c0b2b9d0799 (diff) | |
parent | 91e1cc2195988b4fa5bae66914e12c9dc9da8187 (diff) | |
download | mariadb-git-769cd00e13c00f6b5483ce4ca625e28077ade24f.tar.gz |
Merge moksha.local:/Users/davi/mysql/push/bugs/25164-5.0
into moksha.local:/Users/davi/mysql/push/bugs/25164-5.1
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index d9e9dd31f81..29a07858bc1 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -276,6 +276,8 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count, thd->lock_id)]; if (rc > 1) /* a timeout or a deadlock */ { + if (sql_lock->table_count) + VOID(unlock_external(thd, sql_lock->table, sql_lock->table_count)); my_error(rc, MYF(0)); my_free((uchar*) sql_lock,MYF(0)); sql_lock= 0; |