Subject: | typo in modify_targets() |
Hi,
I couldn't remove a target (server), and found a typo in modify_targets().
Apply the attached patch, please.
Regards,
Subject: | Set-ConsistentHash.pm-typo.patch |
--- lib/Set/ConsistentHash.pm-orig 2007-04-27 07:11:43.000000000 +0900
+++ lib/Set/ConsistentHash.pm 2008-02-09 14:10:30.000000000 +0900
@@ -140,7 +140,7 @@
if ($weight) {
$self->{weights}{$target} = $weight;
} else {
- delete $self->{weight}{$target};
+ delete $self->{weights}{$target};
}
}
$self->_redo_circle;