Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Summary:
|
--------
|
The feature provides a way to set lock wait timeout for ddl statements.
|
|
Usage:
|
-----
|
alter table t [wait [n]|no_wait] add f int,
|
drop table [wait [n]|no_wait], etc.
|
|
no_wait: the query not wait for locks, return immediately, and print
|
"ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction;"
|
|
wait [n]: n is the wait time in second, after wait n seconds for locks,
|
return and print errors;
|
https://github.com/alibaba/AliSQL/commit/958add0b101815d43dc19fca4e317d7049e6647e