Skip to content

Commit

Permalink
Make Master.maxforkrate test only the fork rate
Browse files Browse the repository at this point in the history
and not also the reap rate, which has separate bugs.
  • Loading branch information
Greg Banks committed Feb 20, 2012
1 parent ad9bf14 commit 10999db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Cassandane/Cyrus/Master.pm
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,19 @@ sub measure_fork_rate
my ($self, $srv, $rate) = @_;

my $metronome = Cassandane::Util::Metronome->new(rate => $rate);
my @lemmings;
for (1..100)
{
my $lemm = lemming_connect($srv);
lemming_push($lemm, 'success');
push(@lemmings, $lemm);
$metronome->tick();
}

foreach my $lemm (@lemmings)
{
lemming_push($lemm, 'success');
}

return $metronome->actual_rate();
}

Expand Down

0 comments on commit 10999db

Please sign in to comment.