[obkv] fix for codescan
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user