fix clog return code retry

This commit is contained in:
Charles0429
2022-11-22 08:35:57 +00:00
committed by wangzelin.wzl
parent 3772f41232
commit f72d873722
4 changed files with 16 additions and 11 deletions

View File

@ -771,3 +771,11 @@ int ObDDLUtil::ddl_get_tablet(
}
return ret;
}
bool ObDDLUtil::need_remote_write(const int ret_code)
{
return OB_NOT_MASTER == ret_code
|| OB_NOT_RUNNING == ret_code
|| OB_LS_LOCATION_LEADER_NOT_EXIST == ret_code
|| OB_EAGAIN == ret_code;
}