- Timestamp:
- Jan 29, 2010, 10:51:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ippScripts/scripts/magic_destreak_cleanup.pl
r25837 r26721 183 183 } 184 184 185 delete_files($rimage, $rmask, $rweight, $rsources, $rastrom, $bimage, $bmask, $bweight, $bsources, $bastrom );185 delete_files($rimage, $rmask, $rweight, $rsources, $rastrom, $bimage, $bmask, $bweight, $bsources, $bastrom, $bch_mask, $rch_mask); 186 186 187 187 if ($stage eq "diff" and $inverse) { … … 199 199 $rsources = $ipprc->filename("$name.SOURCES", $recovery_path_base); 200 200 } 201 delete_files($rimage, $rmask, $rweight, $rsources, undef, $bimage, $bmask, $bweight, $bsources, undef); 201 # undef is not necessary, it's just to keep the lists in the same order. 202 delete_files($rimage, $rmask, $rweight, $rsources, undef, $bimage, $bmask, $bweight, $bsources); 202 203 } 203 204 } … … 211 212 if (!$no_update) { 212 213 my $result = $dbh->do("UPDATE magicDSRun SET state = 'cleaned' WHERE magic_ds_id = ?", undef, $magic_ds_id); 213 my_die("attempt to update magicDSRun failed", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR) if $result eq "0E0";214 my_die("attempt to update magicDSRun.state failed", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR) if $result eq "0E0"; 214 215 } else { 215 216 print STDERR "skipping update of magicDSRun\n"; … … 246 247 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 247 248 248 my $command = "$magicdstool -updaterun - fault $exit_code";249 my $command = "$magicdstool -updaterun -set_state failed_cleanup"; 249 250 $command .= " -magic_ds_id $magic_ds_id"; 250 251 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
