DaanHoogland commented on a change in pull request #2282: 
CLOUDSTACK-10104:Optimize database transactions in ListDomain API to improve 
performance
URL: https://github.com/apache/cloudstack/pull/2282#discussion_r159821325
 
 

 ##########
 File path: server/src/com/cloud/api/query/QueryManagerImpl.java
 ##########
 @@ -1901,9 +1900,10 @@
         Long domainId = cmd.getId();
         boolean listAll = cmd.listAll();
         boolean isRecursive = false;
+        Domain domain = null;
 
         if (domainId != null) {
-            Domain domain = _domainDao.findById(domainId);
+            domain = _domainDao.findById(domainId);
 
 Review comment:
   :) ? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to