Fix failed to get ddl rpc timeout after table dropped

This commit is contained in:
Hongqin-Li
2023-02-24 13:49:45 +00:00
committed by ob-robot
parent 42328efa81
commit 8441f54f6f

View File

@ -1001,7 +1001,10 @@ int ObDDLUtil::get_ddl_rpc_timeout(const int64_t tenant_id, const int64_t table_
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid argument", K(ret), K(tenant_id), K(table_id));
} else if (OB_FAIL(get_tablet_count(tenant_id, table_id, tablet_count))) {
LOG_WARN("get tablet count failed", K(ret));
ret = OB_SUCCESS; // force succ
tablet_count = 0;
}
if (OB_FAIL(ret)) {
} else if (OB_FAIL(get_ddl_rpc_timeout(tablet_count, ddl_rpc_timeout_us))) {
LOG_WARN("get ddl rpc timeout failed", K(ret));
}