[CP] Auto Refresh/Broadcast Tablet Location

This commit is contained in:
tino247
2024-02-07 03:10:35 +00:00
committed by ob-robot
parent bd399fbacd
commit ed95beb4e1
35 changed files with 2746 additions and 65 deletions

View File

@ -2856,6 +2856,22 @@ int ObAdminUnlockMemberListP::process()
return ret;
}
int ObTabletLocationReceiveP::process()
{
int ret = OB_SUCCESS;
if (OB_ISNULL(GCTX.location_service_)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("GCTX.location_service_ is nullptr", KR(ret), KP(GCTX.location_service_));
} else {
FOREACH_CNT_X(it, arg_.get_tasks(), OB_SUCC(ret)) {
if (OB_FAIL(GCTX.location_service_->submit_tablet_update_task(*it))) {
LOG_WARN("failed to submit_tablet_update_tasks", KR(ret));
}
}
}
result_.set_ret(ret);
return OB_SUCCESS;
}
} // end of namespace observer
} // end of namespace oceanbase