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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user