Code Duplication    Length = 3-5 lines in 2 locations

includes/db/loadbalancer/LoadBalancer.php 2 locations

@@ 412-416 (lines=5) @@
409
			$i = ArrayUtils::pickRandom( $readLoads );
410
		}
411
412
		if ( $i > 0 ) {
413
			$ok = $this->doWait( $i, true, $timeout );
414
		} else {
415
			$ok = true; // no applicable loads
416
		}
417
418
		return $ok;
419
	}
@@ 433-435 (lines=3) @@
430
431
		$ok = true;
432
		for ( $i = 1; $i < $serverCount; $i++ ) {
433
			if ( $this->mLoads[$i] > 0 ) {
434
				$ok = $this->doWait( $i, true, $timeout ) && $ok;
435
			}
436
		}
437
438
		return $ok;