From af6e390baa02e888d1f9342fa78b62f2a85af7f1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Mon, 12 Mar 2007 17:01:16 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20373492:=20Data=20in=20data/mining/*=20is?= =?UTF-8?q?=20corrupted=20-=20Patch=20by=20Fr=EF=BF=BD=EF=BF=BDd=EF=BF=BD?= =?UTF-8?q?=EF=BF=BDric=20Buclin=20=20r=3Dmkanat=20r=3D?= =?UTF-8?q?gerv=20a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webtools/bugzilla/collectstats.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webtools/bugzilla/collectstats.pl b/webtools/bugzilla/collectstats.pl index 3b6344b3775..7bc2b6174d6 100755 --- a/webtools/bugzilla/collectstats.pl +++ b/webtools/bugzilla/collectstats.pl @@ -264,8 +264,11 @@ sub get_old_data { $recreate = 1; my @new_cols = ($columns[0], @statuses, @resolutions); if (scalar(@columns) == scalar(@new_cols)) { - my ($removed, $added) = diff_arrays(\@columns, \@new_cols); - last if (!scalar(@$removed) && !scalar(@$added)); + my $identical = 1; + for (0 .. $#columns) { + $identical = 0 if ($columns[$_] ne $new_cols[$_]); + } + last if $identical; } } next unless $recreate;