IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11736


Ignore:
Timestamp:
Feb 9, 2007, 12:40:16 PM (19 years ago)
Author:
jhoblitt
Message:

fix p4Run mode & state checking funcs

File:
1 edited

Legend:

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

    r11731 r11736  
    921921    }
    922922
    923     char *query = "UPDATE p4Run SET state = '%s' WHERE det_id = '%s'";
     923    char *query = "UPDATE p4Run SET state = '%s' WHERE p4_id = '%s'";
    924924    if (!p_psDBRunQuery(config->dbh, query, state, p4_id)) {
    925925        psError(PS_ERR_UNKNOWN, false,
    926                 "failed to change state for det_id %s", p4_id);
     926                "failed to change state for p4_id %s", p4_id);
    927927        return false;
    928928    }
     
    938938    // check that state is a valid string value
    939939    if (!(
    940             (strncmp(mode, "master", 7) == 0)
    941             || (strncmp(mode, "verify", 7) == 0)
     940            (strncmp(mode, "warp", 5) == 0)
     941            || (strncmp(mode, "diff", 5) == 0)
     942            || (strncmp(mode, "stack", 6) == 0)
     943            || (strncmp(mode, "magic", 6) == 0)
    942944        )
    943945    ) {
Note: See TracChangeset for help on using the changeset viewer.