GutoVeronezi commented on a change in pull request #5984:
URL: https://github.com/apache/cloudstack/pull/5984#discussion_r821898182



##########
File path: server/src/main/java/com/cloud/server/StatsCollector.java
##########
@@ -315,8 +329,7 @@ public String toString() {
     private final long mgmtSrvrId = MacAddress.getMacAddress().toLong();
     private static final int ACQUIRE_GLOBAL_LOCK_TIMEOUT_FOR_COOPERATION = 5;  
  // 5 seconds
     private boolean _dailyOrHourly = false;
-
-    //private final GlobalLock m_capacityCheckLock = 
GlobalLock.getInternLock("capacity.check");
+    protected long msId = ManagementServerNode.getManagementServerId();

Review comment:
       The method  `ManagementServerNode#getManagementServerId` retrieves the 
MacAddress as long. To get the management ID you could use 
`ManagementServerHostDaoImpl#findByMsid` passing the MacAddress as long.




-- 
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]


Reply via email to