Changeset 24941
- Timestamp:
- Jul 29, 2009, 1:36:54 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_finish.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r24831 r24941 173 173 } 174 174 175 my $exp_info; 176 my $last_exp_id = 0; 175 177 foreach my $job (@jobs) { 176 178 my $job_id = $job->{job_id}; … … 181 183 182 184 my ($row, $req_info, $project) = get_request_info($rows, $rownum); 183 my $proj_hash = resolve_project($ipprc, $project, $dbname); 184 my $image_db = $proj_hash->{dbname}; 185 186 # get the metadata for the exposure (if any i.e. stack) 187 # returns an appropriate string if !$exp_id 188 my $exp_info = get_exposure_info($image_db, $exp_id); 185 186 if ($exp_id ne $last_exp_id) { 187 my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver); 188 my $image_db = $proj_hash->{dbname}; 189 if (!$image_db) { 190 carp("failed to find imagedb for project: $project"); 191 stop_request($req_id, $PS_EXIT_CONFIG_ERROR); 192 } 193 194 # get the metadata for the exposure (if any i.e. stack) 195 # returns an appropriate string if !$exp_id 196 $exp_info = get_exposure_info($image_db, $exp_id); 197 # XXX: uncomment this and test 198 # $last_exp_id = $exp_id; 199 } 189 200 190 201 if (($job_type eq "stamp") || ($job_type eq "get_image")) {
Note:
See TracChangeset
for help on using the changeset viewer.
