IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2011, 9:36:02 AM (15 years ago)
Author:
eugene
Message:

merging changes from trunk

Location:
branches/eam_branches/ipp-20110213/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ippTools/src

  • branches/eam_branches/ipp-20110213/ippTools/src/regtool.c

    r30675 r31083  
    311311
    312312  // 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);
    316316  // optional
    317317  PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     
    894894    if (fault != INT16_MAX) {
    895895        // 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)) {
    897897            psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    898898            psFree (where);
     
    13611361
    13621362    // 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")) {
    13641366        // rollback
    13651367        if (!psDBRollback(config->dbh)) {
    1366             psError(PS_ERR_UNKNOWN, false, "database error");
     1368          psError(PS_ERR_UNKNOWN, false, "database error");
    13671369        }
    13681370        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      }
    13711374    }
    13721375
     
    16081611  PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false);
    16091612
    1610   if (!pxSetFaultCode(config->dbh, "rawExp", where, fault)) {
     1613  if (!pxSetFaultCode(config->dbh, "rawExp", where, fault, 0)) {
    16111614    psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    16121615    psFree(where);
Note: See TracChangeset for help on using the changeset viewer.