Skip Menu |

This queue is for tickets about the Set-ConsistentHash CPAN distribution.

Report information
The Basics
Id: 33045
Status: new
Priority: 0/
Queue: Set-ConsistentHash

People
Owner: Nobody in particular
Requestors: takeru.inoue+perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.91
Fixed in: (no value)



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;