Changeset 23688 for trunk/ippTools/src/disttool.c
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/disttool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/ippTools/src/disttool.c
r23661 r23688 106 106 107 107 // TODO: should we check that stage_id actually exists for stage 108 // in magicdstool we queue off of a magic_id so the stage_id, exp_id, and cam_id get looked up 108 // in magicdstool we queue off of a magic_id so the stage_id, exp_id, and cam_id get looked up 109 109 // when the run is queued 110 110 … … 151 151 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 152 152 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false); 153 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);154 155 if ((!state) && (!label) && (! code)) {156 psError(PXTOOLS_ERR_DATA, false, "parameters (- codeor -set_state or -set_label) are required");153 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 154 155 if ((!state) && (!label) && (!fault)) { 156 psError(PXTOOLS_ERR_DATA, false, "parameters (-fault or -set_state or -set_label) are required"); 157 157 psFree(where); 158 158 return false; … … 169 169 } 170 170 171 if ( code) {172 psStringAppend(&query, " , fault = %d", code);171 if (fault) { 172 psStringAppend(&query, " , fault = %d", fault); 173 173 } 174 174 … … 195 195 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 196 196 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 197 PXOPT_COPY_S16(config->args, where, "- code", "distComponent.fault", "==");197 PXOPT_COPY_S16(config->args, where, "-fault", "distComponent.fault", "=="); 198 198 199 199 // It might be useful to be able to query by the parameters of the underlying runs … … 402 402 // unless fault code is set require filename, bytes, and md5sum 403 403 bool require_fileinfo = false; 404 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);405 if (! code) {404 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 405 if (!fault) { 406 406 require_fileinfo = true; 407 407 } … … 410 410 PXOPT_LOOKUP_STR(name, config->args, "-name", require_fileinfo, false); 411 411 412 if (!distComponentInsert(config->dbh, dist_id, component, bytes, md5sum, "full", name, code)) {412 if (!distComponentInsert(config->dbh, dist_id, component, bytes, md5sum, "full", name, fault)) { 413 413 psError(PS_ERR_UNKNOWN, false, "database error"); 414 414 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
