Changeset 23532 for branches/pap/ippTools/src/disttool.c
- Timestamp:
- Mar 25, 2009, 12:48:19 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ippTools/src/disttool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ippTools/src/disttool.c
r23365 r23532 102 102 103 103 // TODO: check that stage_id actually exists for stage 104 // in magicdstool we queue off of a magic_id so the stage_id, exp_id, and cam_id get looked up 104 // in magicdstool we queue off of a magic_id so the stage_id, exp_id, and cam_id get looked up 105 105 // when the run is queued 106 106 // Should we also check here that the run is full or cleaned and that all of the images … … 138 138 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 139 139 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false); 140 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);141 142 if ((!state) && (!label) && (! code)) {143 psError(PXTOOLS_ERR_DATA, false, "parameters (- codeor -set_state or -set_label) are required");140 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 141 142 if ((!state) && (!label) && (!fault)) { 143 psError(PXTOOLS_ERR_DATA, false, "parameters (-fault or -set_state or -set_label) are required"); 144 144 psFree(where); 145 145 return false; … … 156 156 } 157 157 158 if ( code) {159 psStringAppend(&query, " , fault = %d", code);158 if (fault) { 159 psStringAppend(&query, " , fault = %d", fault); 160 160 } 161 161 … … 182 182 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 183 183 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 184 PXOPT_COPY_S16(config->args, where, "- code", "distComponent.fault", "==");184 PXOPT_COPY_S16(config->args, where, "-fault", "distComponent.fault", "=="); 185 185 186 186 // It might be useful to be able to query by the parameters of the underlying runs … … 368 368 // unless fault code is set require filename, bytes, and md5sum 369 369 bool require_fileinfo = false; 370 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);371 if (! code) {370 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 371 if (!fault) { 372 372 require_fileinfo = true; 373 373 } … … 376 376 PXOPT_LOOKUP_STR(name, config->args, "-name", require_fileinfo, false); 377 377 378 if (!distComponentInsert(config->dbh, dist_id, component, bytes, md5sum, "full", name, code)) {378 if (!distComponentInsert(config->dbh, dist_id, component, bytes, md5sum, "full", name, fault)) { 379 379 psError(PS_ERR_UNKNOWN, false, "database error"); 380 380 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
