[CP] fix errorcode overwrite error, prevent data error

This commit is contained in:
raywill
2022-05-20 14:35:04 +08:00
committed by wangzelin.wzl
parent 9cb529705e
commit df1c2d9f2f
2 changed files with 5 additions and 3 deletions

View File

@ -1994,8 +1994,10 @@ int ObTableLocation::calculate_partition_ids(ObExecContext& exec_ctx, common::Ob
LOG_WARN("Get virtual table fake id error", K(ret));
}
}
if (OB_FAIL(partition_ids.push_back(fake_id))) {
LOG_WARN("Add fake partition id error", K(ret));
if (OB_SUCC(ret)) {
if (OB_FAIL(partition_ids.push_back(fake_id))) {
LOG_WARN("Add fake partition id error", K(ret));
}
}
}
}