IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2009, 4:25:35 PM (17 years ago)
Author:
watersc1
Message:

Updates to various tools to fix errors in cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.c

    r25790 r25800  
    728728    PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "==");
    729729    PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "==");
    730     PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false);
    731 
    732     if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, fault)) {
     730    PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, NULL);
     731       
     732    if (!state) {
     733      PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false);
     734     
     735      if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, fault)) {
    733736        psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    734737        return false;
    735     }
    736     psFree(where);
    737 
     738      }
     739      psFree(where);
     740    }
     741    else {
     742      if (!pxchipProcessedImfileSetStateByQuery(config,where,state)) {
     743        psError(PS_ERR_UNKNOWN, false, "failed to set chipProcessedImfile state");
     744        return(false);
     745      }
     746    }
     747
     748     
    738749    return true;
    739750}
Note: See TracChangeset for help on using the changeset viewer.