Changeset 28715
- Timestamp:
- Jul 26, 2010, 12:06:32 PM (16 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
-
czartool/CzarDb.pm (modified) (2 diffs)
-
roboczar.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/CzarDb.pm
r28704 r28715 34 34 ########################################################################### 35 35 sub getCurrentLabels { 36 my ($self, $server ) = @_;36 my ($self, $server, $labels) = @_; 37 37 38 38 my $query = $self->{_db}->prepare(<<SQL); … … 43 43 SQL 44 44 45 $query->execute; 46 47 return $query->fetchall_arrayref(); 45 46 if (!$query->execute) { 47 48 print "WARNING: getCurrentLabels() failed\n"; 49 return 0; 50 } 51 52 ${$labels} = $query->fetchall_arrayref(); 53 54 return 1; 48 55 } 49 56 -
trunk/tools/roboczar.pl
r28707 r28715 86 86 my $reverting = 0; 87 87 my $server = undef; 88 89 my $rows = undef; # TODO just call label 90 my $row; 88 my $rows = undef; 89 my $row = undef; 91 90 92 91 while (1) { … … 94 93 updateServerStatus(); 95 94 updateLabels(); 96 $rows = $czarDb->getCurrentLabels("stdscience");95 if (!$czarDb->getCurrentLabels("stdscience", \$rows)) {next;} 97 96 98 97 foreach $stage (@stages) { 99 $totalNew=$totalFaults=$totalFull=0;100 98 101 99 $server = $pantasks->getServerForThisStage($stage); … … 105 103 print "* Checking labels for $stage stage\n"; 106 104 105 $totalNew=$totalFaults=$totalFull=0; 107 106 foreach $row ( @{$rows} ) { 108 107 my ($label) = @{$row};
Note:
See TracChangeset
for help on using the changeset viewer.
