Changeset 29576 for trunk/pstamp/scripts/pstamp_parser_run.pl
- Timestamp:
- Oct 26, 2010, 4:00:42 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_parser_run.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_parser_run.pl
r28224 r29576 23 23 24 24 use PS::IPP::Config qw( :standard ); 25 use PS::IPP::PStamp::RequestFile qw( :standard ); 25 26 26 27 my $req_id; … … 146 147 my $reqType; # for the database 147 148 149 my $request_fault = $PSTAMP_INVALID_REQUEST; 150 148 151 if (-r $uri) { 149 152 # run the appropriate parse command to parse the queue the jobs for this request … … 157 160 $parse_cmd = "$pstampparse"; 158 161 $parse_cmd .= " --label $label" if $label; 162 $request_fault = 0; 159 163 } elsif ($request_type eq "MOPS_DETECTABILITY_QUERY") { 160 164 $reqType = 'dquery'; 161 165 $parse_cmd = "$dqueryparse"; 162 166 $parse_cmd .= " --label $label" if $label; 167 $request_fault = 0; 163 168 } else { 164 169 print STDERR "Unknown request type $request_type found in $uri"; … … 182 187 my $command = "$pstamptool -updatereq -req_id $req_id -set_state run"; 183 188 $command .= " -set_reqType unknown"; 184 $command .= " -set_fault $ PS_EXIT_DATA_ERROR";189 $command .= " -set_fault $request_fault"; 185 190 $command .= " -dbname $dbname" if $dbname; 186 191 $command .= " -dbserver $dbserver" if $dbserver; … … 190 195 die("Unable to perform $command error code: $error_code"); 191 196 } 192 exit $ PS_EXIT_DATA_ERROR;197 exit $request_fault; 193 198 } 194 199
Note:
See TracChangeset
for help on using the changeset viewer.
