1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-29676 Add query to set lock wait timeout when getting sts crd

Set the lock wait timeout to 1 beforehand, and reset it afterwards, to
avoid lock conflict caused by opening the same table twice in case of
self-reference.
This commit is contained in:
Yuchen Pei
2023-04-27 09:51:34 +10:00
parent 779307dd5b
commit 6abafdbb7c
9 changed files with 188 additions and 3 deletions

View File

@@ -513,6 +513,12 @@ public:
int wait_timeout,
int *need_mon
);
/** Set the global lock wait time out */
int set_lock_wait_timeout(uint timeout);
/** Reset the global lock wait time out */
int reset_lock_wait_timeout();
bool set_sql_mode_in_bulk_sql();
int set_sql_mode(
sql_mode_t sql_mode,