diff options
author | ndbdev@dl145c.mysql.com <> | 2005-09-15 07:36:47 +0200 |
---|---|---|
committer | ndbdev@dl145c.mysql.com <> | 2005-09-15 07:36:47 +0200 |
commit | dc595c9b1d7fedc9a5a4fdc013fda58126871a04 (patch) | |
tree | 23b82d6dda69edf445b72fe960239c2e3eb5b50b /sql/sql_insert.cc | |
parent | 81d8cc1e8411d482b48cafda64cddc5e446632cc (diff) | |
parent | ff4a6e139e2a0b8d382dfadeff2cdc06b19c72a7 (diff) | |
download | mariadb-git-dc595c9b1d7fedc9a5a4fdc013fda58126871a04.tar.gz |
merge
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 77741d0ed3c..3d7ca8059b9 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1839,6 +1839,7 @@ extern "C" pthread_handler_decl(handle_delayed_insert,arg) if (di->tables_in_use && ! thd->lock) { + bool not_used; /* Request for new delayed insert. Lock the table, but avoid to be blocked by a global read lock. @@ -1850,7 +1851,8 @@ extern "C" pthread_handler_decl(handle_delayed_insert,arg) inserts are done. */ if (! (thd->lock= mysql_lock_tables(thd, &di->table, 1, - MYSQL_LOCK_IGNORE_GLOBAL_READ_LOCK))) + MYSQL_LOCK_IGNORE_GLOBAL_READ_LOCK, + ¬_used))) { /* Fatal error */ di->dead= 1; |