[Bugfix]not refresh ls location cache when get ls id

This commit is contained in:
WeiXinChan
2023-08-16 06:48:18 +00:00
committed by ob-robot
parent 896f28392f
commit a4bac8c38f

View File

@ -240,7 +240,7 @@ int ObTableApiProcessorBase::get_ls_id(const ObTabletID &tablet_id, ObLSID &ls_i
{
int ret = OB_SUCCESS;
bool is_cache_hit = false;
int64_t expire_renew_time = INT64_MAX;
int64_t expire_renew_time = 0; // not refresh ls location cache
if (OB_FAIL(location_service_->get(MTL_ID(), tablet_id, expire_renew_time, is_cache_hit, ls_id))) {
LOG_WARN("failed to get ls id", K(ret), K(is_cache_hit));
}