passiveLog entry should land in the first bucket that matches, not all

buckets that match.

Added help info about escaping meta-characters in regexps.
This commit is contained in:
Patrick Donelan 2009-02-01 16:11:47 +11:00
parent bd38691cf0
commit f1968c9d40
2 changed files with 6 additions and 0 deletions

View file

@ -107,7 +107,11 @@ EOSQL1
my $bucketFound = 0;
RULE: foreach my $rule (@rules) {
next RULE unless $rule->matchesBucket($entry);
# Into the bucket she goes..
$bucketSth->execute([$entry->{userId}, $rule->get('bucketName'), $entry->{delta}, $entry->{stamp}]);
$bucketFound = 1;
last RULE;
}
if (!$bucketFound) {
$bucketSth->execute([$entry->{userId}, 'Other', $entry->{delta}, $entry->{stamp}]);