Do not check

trace-sqes
Vitaliy Filippov 2020-03-20 13:38:35 +03:00
parent 18915b264a
commit 2aa605f2bb
1 changed files with 0 additions and 15 deletions

View File

@ -137,21 +137,6 @@ sub optimize_change
{
push @{$pg_per_osd->{$_}}, "pg_".join("_", @$pg) for @$pg;
}
# Check that old distribution
my $check_extra = { %$prev_weights };
for my $pg (@$pgs)
{
delete $check_extra->{"pg_".join("_", @$pg)};
}
if (%$check_extra)
{
print "Old distribution includes strange PGs:\n";
for my $pg (keys %$check_extra)
{
print "$pg\n";
}
exit;
}
# Penalize PGs based on their similarity to old PGs
my $intersect = {};
for my $pg_name (keys %$prev_weights)