IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2008, 9:51:00 AM (18 years ago)
Author:
bills
Message:

added -updatesumskyfile for error recording during update processing
Drop data_state it isn't needed

File:
1 edited

Legend:

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

    r19673 r19676  
    4343static bool pendingcleanupskyfileMode(pxConfig *config);
    4444static bool donecleanupMode(pxConfig *config);
     45static bool updatesumskyfileMode(pxConfig *config);
    4546
    4647static bool setstackRunState(pxConfig *config, psS64 stack_id, const char *state);
     
    7677        MODECASE(STACKTOOL_MODE_PENDINGCLEANUPSKYFILE, pendingcleanupskyfileMode);
    7778        MODECASE(STACKTOOL_MODE_DONECLEANUP,           donecleanupMode);
     79        MODECASE(STACKTOOL_MODE_UPDATESUMSKYFILE,      updatesumskyfileMode);
    7880        default:
    7981            psAbort("invalid option (this should not happen)");
     
    725727                               uri,
    726728                               path_base,
    727                                "full",  // data_state
    728729                               bg,
    729730                               bg_stdev,
     
    11581159    return true;
    11591160}
     1161static bool updatesumskyfileMode(pxConfig *config)
     1162{
     1163    PS_ASSERT_PTR_NON_NULL(config, false);
     1164
     1165    PXOPT_LOOKUP_S16(code, config->args, "-code", true, false);
     1166
     1167    psMetadata *where = psMetadataAlloc();
     1168    PXOPT_COPY_S64(config->args, where, "-stack_id",   "stack_id",   "==");
     1169
     1170    if (!pxSetFaultCode(config->dbh, "stackSumSkyfile", where, code)) {
     1171        psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
     1172        psFree (where);
     1173        return false;
     1174    }
     1175    psFree (where);
     1176
     1177    return true;
     1178}
     1179
Note: See TracChangeset for help on using the changeset viewer.