Changeset 23389 for trunk/ippTools/src/magicdstool.c
- Timestamp:
- Mar 18, 2009, 10:18:37 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magicdstool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magicdstool.c
r21433 r23389 242 242 243 243 // create a new magicRun for this group 244 magicRunRow *run = magicRunRowAlloc(0, exp_id, " run", workdir, "dirty", label, dvodb, registered, 0);244 magicRunRow *run = magicRunRowAlloc(0, exp_id, "new", workdir, "dirty", label, dvodb, registered, 0); 245 245 if (!run) { 246 246 psAbort("failed to alloc magicRun object"); … … 320 320 PXOPT_LOOKUP_STR(stage, config->args, "-stage", true, false); 321 321 PXOPT_LOOKUP_STR(outroot, config->args, "-outroot", true, false); 322 323 // optional 322 324 PXOPT_LOOKUP_STR(recoveryroot, config->args, "-recoveryroot", false, false); 323 325 PXOPT_LOOKUP_BOOL(re_place, config->args, "-replace", false); 324 326 PXOPT_LOOKUP_BOOL(remove, config->args, "-remove", false); 325 326 // optional327 327 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 328 PXOPT_LOOKUP_STR(label, config->args, "-label", false, false); 328 329 329 330 psS64 stage_id = 0, cam_id = 0; … … 337 338 0, // ID 338 339 magic_id, 339 " run", // state340 "new", // state 340 341 stage, 341 342 stage_id, 342 343 cam_id, 344 label, 343 345 outroot, 344 346 recoveryroot, … … 396 398 PXOPT_COPY_S64(config->args, where, "-magic_ds_id", "magic_ds_id", "=="); 397 399 PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "=="); 398 // PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "==");400 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 399 401 400 402 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 685 687 psS64 magic_ds_id = psMetadataLookupS64(NULL, row, "magic_ds_id"); 686 688 687 // set magicDSRun.state to ' stop'688 if (!setmagicDSRunState(config, magic_ds_id, " stop")) {689 // set magicDSRun.state to 'full' 690 if (!setmagicDSRunState(config, magic_ds_id, "full")) { 689 691 psError(PS_ERR_UNKNOWN, false, "failed to change magicDSRun.state for magic_ds_id: %" PRId64, 690 692 magic_ds_id); … … 795 797 // check that state is a valid string value 796 798 if (!( 797 (strncmp(state, " run", 4) == 0)798 || (strncmp(state, " stop", 5) == 0)799 (strncmp(state, "new", 4) == 0) 800 || (strncmp(state, "full", 5) == 0) 799 801 ) 800 802 ) {
Note:
See TracChangeset
for help on using the changeset viewer.
