1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Made it possible to use --max-delayed-threads=0 in order to disable

INSERT DELAYED.
This commit is contained in:
jani@rhols221.adsl.netsonic.fi
2003-03-09 19:03:55 +02:00
parent c6f241636f
commit c5aadd2821
2 changed files with 4 additions and 3 deletions

View File

@ -140,7 +140,8 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, List<Item> &fields,
if ((lock_type == TL_WRITE_DELAYED &&
((specialflag & (SPECIAL_NO_NEW_FUNC | SPECIAL_SAFE_MODE)) ||
thd->slave_thread)) ||
(lock_type == TL_WRITE_CONCURRENT_INSERT && duplic == DUP_REPLACE))
(lock_type == TL_WRITE_CONCURRENT_INSERT && duplic == DUP_REPLACE) ||
!max_insert_delayed_threads)
lock_type=TL_WRITE;
if (lock_type == TL_WRITE_DELAYED)