Code Duplication    Length = 3-5 lines in 2 locations

includes/db/loadbalancer/LoadBalancer.php 2 locations

@@ 398-402 (lines=5) @@
395
			$i = ArrayUtils::pickRandom( $readLoads );
396
		}
397
398
		if ( $i > 0 ) {
399
			$ok = $this->doWait( $i, true, $timeout );
400
		} else {
401
			$ok = true; // no applicable loads
402
		}
403
404
		return $ok;
405
	}
@@ 419-421 (lines=3) @@
416
417
		$ok = true;
418
		for ( $i = 1; $i < $serverCount; $i++ ) {
419
			if ( $this->mLoads[$i] > 0 ) {
420
				$ok = $this->doWait( $i, true, $timeout ) && $ok;
421
			}
422
		}
423
424
		return $ok;