diff options
author | svoj@june.mysql.com <> | 2007-06-01 15:33:48 +0500 |
---|---|---|
committer | svoj@june.mysql.com <> | 2007-06-01 15:33:48 +0500 |
commit | 61fedfa57b40c65ecb122ab47f25b81c965c6daa (patch) | |
tree | 1e66a3230bdebdd804e3a41a3ef6c35a25b6d6cb /sql/lock.cc | |
parent | 316f09d444bbdd1903165ad1b4a59b0a9e176212 (diff) | |
parent | e93c65683a8b3e195d0460c4b8e3145e30009673 (diff) | |
download | mariadb-git-61fedfa57b40c65ecb122ab47f25b81c965c6daa.tar.gz |
Merge mysql.com:/home/svoj/devel/mysql/BUG28574/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG28574/mysql-5.1-engines
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index 6f1dd0669ee..08c109a17ab 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -197,6 +197,13 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count, } else if (rc == 1) /* aborted */ { + /* + reset_lock_data is required here. If thr_multi_lock fails it + resets lock type for tables, which were locked before (and + including) one that caused error. Lock type for other tables + preserved. + */ + reset_lock_data(sql_lock); thd->some_tables_deleted=1; // Try again sql_lock->lock_count= 0; // Locks are already freed } |