Changeset 25837 for trunk/ippScripts/scripts/magic_destreak_cleanup.pl
- Timestamp:
- Oct 14, 2009, 11:24:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_destreak_cleanup.pl
r25822 r25837 106 106 107 107 108 &my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_ purged";109 &my_die(" purgenot allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw";108 &my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_cleaned"; 109 &my_die("clean not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw"; 110 110 111 111 … … 210 210 211 211 if (!$no_update) { 212 my $result = $dbh->do("UPDATE magicDSRun SET state = ' purged' WHERE magic_ds_id = ?", undef, $magic_ds_id);212 my $result = $dbh->do("UPDATE magicDSRun SET state = 'cleaned' WHERE magic_ds_id = ?", undef, $magic_ds_id); 213 213 my_die("attempt to update magicDSRun failed", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR) if $result eq "0E0"; 214 214 } else { … … 246 246 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 247 247 248 my $command = "$magicdstool -updaterun - set_state purge_fault.$exit_code";248 my $command = "$magicdstool -updaterun -fault $exit_code"; 249 249 $command .= " -magic_ds_id $magic_ds_id"; 250 250 $command .= " -dbname $dbname" if defined $dbname; 251 251 252 252 # Add the processed file to the database 253 unless ( 1 or$no_update) {253 unless ($no_update) { 254 254 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 255 255 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
