[obkv] fix for codescan

This commit is contained in:
GroundWu
2024-04-15 02:49:37 +00:00
committed by ob-robot
parent 525b9b562f
commit 1ced1950f9
7 changed files with 14 additions and 12 deletions

View File

@ -208,6 +208,7 @@ int ObTableRpcImpl::aggregate_tablet_by_server(const ObIArray<ObTabletLocation>
int tmp_ret = ret;
FreeIdxArrayFunc free_idx_array_fn;
if (OB_FAIL(server_tablet_map.foreach_refactored(free_idx_array_fn))) {
//overwrite ret
LOG_WARN("failed to do foreach", K(ret));
}
ret = OB_SUCCESS == tmp_ret ? ret : tmp_ret;

View File

@ -958,8 +958,7 @@ int ObTableServiceClientImpl::get_tablet_location(const ObString &table_name, co
0, ObReplicaType::REPLICA_TYPE_FULL, ObReplicaProperty(),
role_status, 1))) {
LOG_WARN("fail to init tablet replication location", K(ret));
}
if (OB_FAIL(tablet_location.add_replica_location(fake_leader_loc))) {
} else if (OB_FAIL(tablet_location.add_replica_location(fake_leader_loc))) {
LOG_WARN("failed to push back", K(ret));
} else {
tablet_location.set_tenant_id(tenant_id_);