Do not check

This commit is contained in:
Vitaliy Filippov
2020-03-20 13:38:35 +03:00
parent 18915b264a
commit 2aa605f2bb
-15
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)