Changeset 26925
- Timestamp:
- Feb 12, 2010, 12:06:23 PM (16 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
disttool.c (modified) (2 diffs)
-
disttoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/disttool.c
r26519 r26925 428 428 PXOPT_COPY_S64(config->args, where, "-dist_id", "dist_id", "=="); 429 429 PXOPT_COPY_STR(config->args, where, "-stage", "stage", "==");; 430 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 430 PXOPT_COPY_STR(config->args, where, "-state", "distRun.state", "=="); 431 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 432 PXOPT_COPY_STR(config->args, where, "-data_group", "distRun.data_group", "=="); 433 PXOPT_COPY_STR(config->args, where, "-dist_group", "distTarget.dist_group", "=="); 431 434 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 432 435 … … 448 451 } 449 452 450 psString query = psStringCopy("UPDATE distRun SETtime_stamp = UTC_TIMESTAMP()");453 psString query = psStringCopy("UPDATE distRun join distTarget using(target_id, stage) SET distRun.time_stamp = UTC_TIMESTAMP()"); 451 454 452 455 if (outdir) { 453 psStringAppend(&query, " , outdir = '%s'", outdir);456 psStringAppend(&query, " , distRun.outdir = '%s'", outdir); 454 457 } 455 458 if (state) { 456 psStringAppend(&query, " , state = '%s'", state);459 psStringAppend(&query, " , distRun.state = '%s'", state); 457 460 } 458 461 459 462 if (label) { 460 psStringAppend(&query, " , label = '%s'", label);463 psStringAppend(&query, " , distRun.label = '%s'", label); 461 464 } 462 465 463 466 if (fault) { 464 psStringAppend(&query, " , fault = %d", fault);467 psStringAppend(&query, " , distRun.fault = %d", fault); 465 468 } 466 469 -
trunk/ippTools/src/disttoolConfig.c
r26337 r26925 74 74 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-state", 0, "value for state", NULL); 75 75 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-label", 0, "limit updates to label", NULL); 76 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-data_group", 0, "limit updates to data_group", NULL); 77 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-dist_group", 0, "limit updates to data_group", NULL); 76 78 psMetadataAddS16(updaterunArgs, PS_LIST_TAIL, "-fault", 0, "define fault code", 0); 77 79
Note:
See TracChangeset
for help on using the changeset viewer.
