- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (2 props)
-
ippTools/src/disttool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/ippTools/src
- Property svn:ignore
-
old new 47 47 sctool 48 48 releasetool 49 fftool 50 remotetool 51
-
- Property svn:mergeinfo deleted
- Property svn:ignore
-
branches/eam_branches/ps2-tc3-20130727/ippTools/src/disttool.c
r35193 r36680 375 375 } 376 376 if (dist_group) { 377 psStringAppend(&query, " AND (st icskyRun.dist_group = '%s')", dist_group);377 psStringAppend(&query, " AND (staticskyRun.dist_group = '%s')", dist_group); 378 378 } 379 379 // (static)sky stage doesn't require magic 380 magic = false; 381 } else if (!strcmp(stage, "skycal")) { 382 query = pxDataGet("disttool_definebyquery_skycal.sql"); 383 if (!query) { 384 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 385 psFree(where); 386 return false; 387 } 388 389 if (label) { 390 psStringAppend(&query, " AND (skycalRun.label = '%s')", label); 391 } 392 if (dist_group) { 393 psStringAppend(&query, " AND (skycalRun.dist_group = '%s')", dist_group); 394 } 395 // skycal stage doesn't require magic 380 396 magic = false; 381 397 } else if (!strcmp(stage, "SSdiff")) { … … 394 410 if (dist_group) { 395 411 psStringAppend(&query, " AND (diffRun.dist_group = '%s') ", dist_group); 412 } 413 414 magic = false; 415 } else if (!strcmp(stage, "ff")) { 416 runJoinStr = "fullForceRun.ff_id"; 417 query = pxDataGet("disttool_definebyquery_ff.sql"); 418 if (!query) { 419 psError(PXTOOLS_ERR_SYS, false, "failed to retrieve SQL statement"); 420 psFree(where); 421 return(false); 422 } 423 424 if (label) { 425 psStringAppend(&query, " AND (fullForceRun.label = '%s') ", label); 426 } 427 if (dist_group) { 428 psStringAppend(&query, " AND (fullForceRun.dist_group = '%s') ", dist_group); 396 429 } 397 430 … … 661 694 PXOPT_COPY_S64(config->args, where, "-stage_id", "stage_id", "=="); 662 695 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 663 PXOPT_COPY_STR(config->args, where, "-data_group", "d ata_group", "==");696 PXOPT_COPY_STR(config->args, where, "-data_group", "distRun.data_group", "LIKE"); 664 697 665 698 // require data_group or dist_id to be supplied … … 743 776 744 777 query = "DELETE FROM distComponent where dist_id = %" PRId64; 745 char *query2 = "DELETE from rcDSFileset using distRun, rcDSFileset WHERE distRun.dist_id = rcDSFileset.dist_id AND rcDSFileset.state ='cleaned' AND dist_id = %" PRId64;778 char *query2 = "DELETE from rcDSFileset using distRun, rcDSFileset WHERE distRun.dist_id = rcDSFileset.dist_id AND rcDSFileset.state ='cleaned' AND rcDSFileset.dist_id = %" PRId64; 746 779 747 780 for (long i=0; i < psArrayLength(output); i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
