Code Duplication    Length = 3-5 lines in 2 locations

includes/libs/rdbms/loadbalancer/LoadBalancer.php 2 locations

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