IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 2:51:37 PM (17 years ago)
Author:
Paul Price
Message:

Merging in branches/pap/ from r23685. Some conflicts, most notably in ippTools, but these resolved fairly simply. Only question mark is on regtool reversion, but I think I got it right. Everything builds fine.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/src/disttool.c

    r23661 r23688  
    106106
    107107    // 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
    109109    // when the run is queued
    110110
     
    151151    PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false);
    152152    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 (-code or -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");
    157157        psFree(where);
    158158        return false;
     
    169169    }
    170170
    171     if (code) {
    172         psStringAppend(&query, " , fault = %d", code);
     171    if (fault) {
     172        psStringAppend(&query, " , fault = %d", fault);
    173173    }
    174174
     
    195195    PXOPT_COPY_STR(config->args, where, "-state", "state", "==");
    196196    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", "==");
    198198
    199199    // It might be useful to be able to query by the parameters of the underlying runs
     
    402402    // unless fault code is set require filename, bytes, and md5sum
    403403    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) {
    406406        require_fileinfo = true;
    407407    }
     
    410410    PXOPT_LOOKUP_STR(name, config->args, "-name", require_fileinfo, false);
    411411
    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)) {
    413413        psError(PS_ERR_UNKNOWN, false, "database error");
    414414        return false;
Note: See TracChangeset for help on using the changeset viewer.