mirror of https://github.com/redis/redis.git
				
				
				
			fix return wrong value of clusterDelNodeSlots
This commit is contained in:
		
							parent
							
								
									2cdf4cc656
								
							
						
					
					
						commit
						9e7a8c0207
					
				| 
						 | 
				
			
			@ -3600,8 +3600,10 @@ int clusterDelNodeSlots(clusterNode *node) {
 | 
			
		|||
    int deleted = 0, j;
 | 
			
		||||
 | 
			
		||||
    for (j = 0; j < CLUSTER_SLOTS; j++) {
 | 
			
		||||
        if (clusterNodeGetSlotBit(node,j)) clusterDelSlot(j);
 | 
			
		||||
        deleted++;
 | 
			
		||||
        if (clusterNodeGetSlotBit(node,j)) {
 | 
			
		||||
            clusterDelSlot(j);
 | 
			
		||||
            deleted++;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return deleted;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue