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/magictool.c

    r23660 r23688  
    535535
    536536    // default values
    537     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
    538 
    539     if (code > 0) {
     537    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     538
     539    if (fault > 0) {
    540540        char *query = "UPDATE magicRun SET fault = %d, state = 'full' WHERE magic_id = %" PRId64;
    541         if (!p_psDBRunQueryF(config->dbh, query, code, magic_id)) {
     541        if (!p_psDBRunQueryF(config->dbh, query, fault, magic_id)) {
    542542            psError(PS_ERR_UNKNOWN, false,
    543543                    "failed to set fault for magic_id %" PRId64, magic_id);
     
    561561    psMetadata *where = psMetadataAlloc();
    562562    PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "==");
    563     PXOPT_COPY_S16(config->args, where, "-code", "fault", "==");
     563    PXOPT_COPY_S16(config->args, where, "-fault", "fault", "==");
    564564
    565565    psString query = psStringCopy("UPDATE magicRun SET fault = 0, state = 'run' WHERE fault != 0");
     
    908908
    909909    // default values
    910     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     910    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    911911
    912912    if (!magicNodeResultInsert(config->dbh,
     
    914914                               node,
    915915                               uri,
    916                                code
     916                               fault
    917917        )) {
    918918        psError(PS_ERR_UNKNOWN, false, "database error");
     
    931931    PXOPT_COPY_STR(config->args, where, "-node", "node", "==");
    932932    PXOPT_COPY_STR(config->args, where, "-label", "label", "==");
    933     PXOPT_COPY_S16(config->args, where, "-code", "magicNodeResult.fault", "==");
     933    PXOPT_COPY_S16(config->args, where, "-fault", "fault", "==");
    934934
    935935    psString query = pxDataGet("magictool_revertnode.sql");
     
    10371037
    10381038    // default values
    1039     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     1039    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    10401040
    10411041    if (!psDBTransaction(config->dbh)) {
     
    10481048                         uri,
    10491049                         streaks,
    1050                          code
     1050                         fault
    10511051        )) {
    10521052        psError(PS_ERR_UNKNOWN, false, "database error");
     
    10941094    psMetadata *where = psMetadataAlloc();
    10951095    PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "==");
    1096     PXOPT_COPY_S16(config->args, where, "-code", "fault", "==");
     1096    PXOPT_COPY_S16(config->args, where, "-fault", "fault", "==");
    10971097
    10981098    if (!psDBTransaction(config->dbh)) {
Note: See TracChangeset for help on using the changeset viewer.