[TABLELOCK] fix several bugs about timeout in tablelock
This commit is contained in:
@ -6098,7 +6098,6 @@ int ObDDLService::lock_tablets(ObMySQLTransaction &trans,
|
||||
timeout,
|
||||
conn))) {
|
||||
LOG_WARN("lock dest table failed", KR(ret), K(table_id), K(tenant_id));
|
||||
ret = ObDDLUtil::is_table_lock_retry_ret_code(ret) ? OB_EAGAIN : ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6132,7 +6131,6 @@ int ObDDLService::lock_table(ObMySQLTransaction &trans,
|
||||
timeout,
|
||||
conn))) {
|
||||
LOG_WARN("lock dest table failed", KR(ret), K(table_schema));
|
||||
ret = ObDDLUtil::is_table_lock_retry_ret_code(ret) ? OB_EAGAIN : ret;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
@ -6169,7 +6167,6 @@ int ObDDLService::lock_mview(ObMySQLTransaction &trans, const ObSimpleTableSchem
|
||||
lock_arg.timeout_us_ = 0;
|
||||
if (OB_FAIL(ObInnerConnectionLockUtil::lock_obj(tenant_id, lock_arg, conn))) {
|
||||
LOG_WARN("fail to lock mview obj", KR(ret), K(tenant_id), K(lock_arg), KPC(conn));
|
||||
ret = ObDDLUtil::is_table_lock_retry_ret_code(ret) ? OB_EAGAIN : ret;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user