Changeset 23389 for trunk/ippTools/src/magictool.c
- Timestamp:
- Mar 18, 2009, 10:18:37 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magictool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magictool.c
r21402 r23389 217 217 218 218 // create a new magicRun for this group 219 magicRunRow *run = magicRunRowAlloc(0, exp_id, diff_id, " run", workdir, "dirty", label, dvodb, registered, 0);219 magicRunRow *run = magicRunRowAlloc(0, exp_id, diff_id, "new", workdir, "dirty", label, dvodb, registered, 0); 220 220 if (!run) { 221 221 psAbort("failed to alloc magicRun object"); … … 538 538 539 539 if (code > 0) { 540 char *query = "UPDATE magicRun SET fault = %d, state = ' stop' WHERE magic_id = %" PRId64;540 char *query = "UPDATE magicRun SET fault = %d, state = 'full' WHERE magic_id = %" PRId64; 541 541 if (!p_psDBRunQueryF(config->dbh, query, code, magic_id)) { 542 542 psError(PS_ERR_UNKNOWN, false, … … 1088 1088 } 1089 1089 1090 // Set to " run"1090 // Set to "new" 1091 1091 { 1092 1092 psString query = psStringCopy("UPDATE magicRun JOIN magicMask USING(magic_id) " 1093 "SET magicRun.state = ' run' WHERE magicMask.fault != 0");1093 "SET magicRun.state = 'new' WHERE magicMask.fault != 0"); 1094 1094 1095 1095 if (psListLength(where->list)) { … … 1481 1481 // check that state is a valid string value 1482 1482 if (!( 1483 (strncmp(state, " run", 4) == 0)1484 || (strncmp(state, " stop", 5) == 0)1483 (strncmp(state, "new", 4) == 0) 1484 || (strncmp(state, "full", 5) == 0) 1485 1485 || (strncmp(state, "reg", 4) == 0) 1486 1486 )
Note:
See TracChangeset
for help on using the changeset viewer.
