change ddl get tablet to use get_tablet_with_timeout
This commit is contained in:
committed by
wangzelin.wzl
parent
a937303a86
commit
042a195f8b
@ -513,10 +513,7 @@ int ObUniqueIndexChecker::check_unique_index(ObIDag *dag)
|
||||
ObLSHandle ls_handle;
|
||||
if (OB_FAIL(MTL(ObLSService *)->get_ls(ls_id_, ls_handle, ObLSGetMod::DDL_MOD))) {
|
||||
LOG_WARN("fail to get log stream", K(ret), K(ls_id_));
|
||||
} else if (OB_UNLIKELY(nullptr == ls_handle.get_ls())) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("ls is null", K(ret), K(ls_handle));
|
||||
} else if (OB_FAIL(ls_handle.get_ls()->get_tablet_svr()->get_tablet(tablet_id_, tablet_handle_))) {
|
||||
} else if (OB_FAIL(ObDDLUtil::ddl_get_tablet(ls_handle, tablet_id_, tablet_handle_))) {
|
||||
LOG_WARN("fail to get tablet", K(ret), K(tablet_id_), K(tablet_handle_));
|
||||
} else if (index_schema_->is_domain_index()) {
|
||||
STORAGE_LOG(INFO, "do not need to check unique for domain index", "index_id", index_schema_->get_table_id());
|
||||
|
||||
Reference in New Issue
Block a user