diff --git a/storage/tianchi/tse_error.cc b/storage/tianchi/tse_error.cc index d8011d6a7aec49f0ac7cfc8602d7e99bd0ec60f9..3443297d2c5513e9315b5bce7918f484dad4c2e5 100644 --- a/storage/tianchi/tse_error.cc +++ b/storage/tianchi/tse_error.cc @@ -140,6 +140,11 @@ int convert_cantian_err_to_mysql(ct_errno_t error) { "Cannot add or update a child row: a foreign key constraint fails", MYF(0)); err_code = ER_NO_REFERENCED_ROW_2; break; + case ERR_LOCK_TIMEOUT: + my_printf_error(ERR_LOCK_TIMEOUT, + "Timeout, error in acquiring user lock", MYF(0)); + err_code = ER_LOCK_NOWAIT; + break; default: return err_code; }