sureshanaparti commented on code in PR #12502:
URL: https://github.com/apache/cloudstack/pull/12502#discussion_r2721090882
##########
server/src/main/java/com/cloud/api/dispatch/ParamProcessWorker.java:
##########
@@ -532,6 +533,11 @@ private Long translateUuidToInternalId(final String uuid,
final Parameter annota
// Populate CallContext for each of the entity.
for (final Class<?> entity : entities) {
CallContext.current().putContextParameter(entity,
internalId);
+ final Object objVO =
_entityMgr.findByIdIncludingRemoved(entity, internalId);
Review Comment:
can add to Map here, instead of querying db again.
https://github.com/apache/cloudstack/blob/420bf6dff845652c082c2bec4ec61a55ae4184d3/server/src/main/java/com/cloud/api/dispatch/ParamProcessWorker.java#L264-L268
https://github.com/apache/cloudstack/blob/420bf6dff845652c082c2bec4ec61a55ae4184d3/server/src/main/java/com/cloud/api/dispatch/ParamProcessWorker.java#L287-L291
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]