mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	For network stats aggregation job, get the most recent mgmt server id to do the aggregation. Set dao filter to descending.
This commit is contained in:
		
							parent
							
								
									3e02bfa74f
								
							
						
					
					
						commit
						ce5c35b193
					
				@ -1020,7 +1020,7 @@ VirtualMachineGuru, Listener, Configurable, StateListener<State, VirtualMachine.
 | 
			
		||||
                if (scanLock.lock(ACQUIRE_GLOBAL_LOCK_TIMEOUT_FOR_COOPERATION)) {
 | 
			
		||||
                    //Check for ownership
 | 
			
		||||
                    //msHost in UP state with min id should run the job
 | 
			
		||||
                    final ManagementServerHostVO msHost = _msHostDao.findOneInUpState(new Filter(ManagementServerHostVO.class, "id", true, 0L, 1L));
 | 
			
		||||
                    final ManagementServerHostVO msHost = _msHostDao.findOneInUpState(new Filter(ManagementServerHostVO.class, "id", false, 0L, 1L));
 | 
			
		||||
                    if (msHost == null || (msHost.getMsid() != mgmtSrvrId)) {
 | 
			
		||||
                        s_logger.debug("Skipping aggregate network stats update");
 | 
			
		||||
                        scanLock.unlock();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user