- Timestamp:
- Mar 30, 2011, 9:36:02 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213/ippTools/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src merged: 30854,30877,30906-30907,30912,30927,30945,31038,31045,31047,31051,31058
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110213/ippTools/src/regtool.c
r30675 r31083 311 311 312 312 // required 313 PXOPT_LOOKUP_STR(dateobs_begin, config->args, "-dateobs_begin",true, false);314 PXOPT_LOOKUP_STR(dateobs_end, config->args, "-dateobs_end", true, false);315 PXOPT_LOOKUP_S32(valid_burntool, config->args, "-valid_burntool", true, false);313 PXOPT_LOOKUP_STR(dateobs_begin, config->args, "-dateobs_begin", true, false); 314 PXOPT_LOOKUP_STR(dateobs_end, config->args, "-dateobs_end", true, false); 315 PXOPT_LOOKUP_S32(valid_burntool, config->args, "-valid_burntool", true, false); 316 316 // optional 317 317 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 894 894 if (fault != INT16_MAX) { 895 895 // this is fairly dangerous : can set all if the where is not set... 896 if (!pxSetFaultCode(config->dbh, "rawImfile", where, fault )) {896 if (!pxSetFaultCode(config->dbh, "rawImfile", where, fault, 0)) { 897 897 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 898 898 psFree (where); … … 1361 1361 1362 1362 // set the state for the newExp to stop 1363 if (!pxnewExpSetState(config, exp_id, "stop")) { 1363 // but only if we didn't encounter a fault 1364 if (fault == 0) { 1365 if (!pxnewExpSetState(config, exp_id, "stop")) { 1364 1366 // rollback 1365 1367 if (!psDBRollback(config->dbh)) { 1366 psError(PS_ERR_UNKNOWN, false, "database error");1368 psError(PS_ERR_UNKNOWN, false, "database error"); 1367 1369 } 1368 1370 psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: %"PRId64, exp_id); 1369 psFree(newExp); 1370 return false; 1371 psFree(newExp); 1372 return false; 1373 } 1371 1374 } 1372 1375 … … 1608 1611 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 1609 1612 1610 if (!pxSetFaultCode(config->dbh, "rawExp", where, fault )) {1613 if (!pxSetFaultCode(config->dbh, "rawExp", where, fault, 0)) { 1611 1614 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 1612 1615 psFree(where);
Note:
See TracChangeset
for help on using the changeset viewer.
