- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/pztool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ippTools/src
- Property svn:ignore
-
old new 33 33 pstamptool 34 34 disttool 35 receivetool
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ippTools/src/pztool.c
r23594 r24244 338 338 // a lot simplier than a complicated scheme (tried that) to attempt to 339 339 // request on the right number of rows for each camera 340 340 341 341 // treat limit == 0 as "no limit" 342 342 if (limit) { … … 403 403 404 404 // default values 405 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);405 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 406 406 407 407 // start a transaction early so it will contain any row level locks … … 410 410 return false; 411 411 } 412 412 413 413 // query to get an excluse lock on this exposure in 414 414 // pzDownloadExp … … 421 421 PXOPT_COPY_STR(config->args, where, "-inst", "camera", "=="); 422 422 PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "=="); 423 423 424 424 if (psListLength(where->list)) { 425 425 psString whereClause = psDBGenerateWhereSQL(where, NULL); … … 455 455 class_id, 456 456 uri, 457 code,457 fault, 458 458 NULL, // epoch 459 459 hostname … … 605 605 psError(PS_ERR_UNKNOWN, false, "database error"); 606 606 return false; 607 } 607 } 608 608 609 609 // sanity check: we should have inserted at least one row … … 675 675 // init 676 676 long counter = 0, // the total number of elements zipped so far 677 i = 0, // which array in the set 677 i = 0, // which array in the set 678 678 index = 0; // the depth into each array 679 679 // test … … 782 782 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 783 783 784 PXOPT_LOOKUP_S16( code, config->args, "-code", true, false);785 786 if (!pxSetFaultCode(config->dbh, "pzDownloadImfile", where, code)) {784 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 785 786 if (!pxSetFaultCode(config->dbh, "pzDownloadImfile", where, fault)) { 787 787 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 788 psFree (where);789 return false;788 psFree (where); 789 return false; 790 790 } 791 791 psFree(where);
Note:
See TracChangeset
for help on using the changeset viewer.
