Changeset 28959
- Timestamp:
- Aug 18, 2010, 7:42:49 PM (16 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 5 added
- 5 edited
-
share/Makefile.am (modified) (3 diffs)
-
share/disttool_definebyquery_sky.sql (added)
-
share/disttool_pending_sky.sql (added)
-
share/disttool_toadvance.sql (modified) (1 diff)
-
share/staticskytool_export_input.sql (added)
-
share/staticskytool_export_result.sql (added)
-
share/staticskytool_export_run.sql (added)
-
share/staticskytool_result.sql (modified) (1 diff)
-
src/disttool.c (modified) (1 diff)
-
src/staticskytool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r28941 r28959 153 153 disttool_definebyquery_fake.sql \ 154 154 disttool_definebyquery_raw.sql \ 155 disttool_definebyquery_sky.sql \ 155 156 disttool_definebyquery_stack.sql \ 156 157 disttool_definebyquery_warp.sql \ … … 166 167 disttool_pending_fake.sql \ 167 168 disttool_pending_raw.sql \ 169 disttool_pending_sky.sql \ 168 170 disttool_pending_stack.sql \ 169 171 disttool_pending_warp.sql \ … … 328 330 staticskytool_definebyquery_select.sql \ 329 331 staticskytool_definebyquery_inputs.sql \ 332 staticskytool_export_run.sql \ 333 staticskytool_export_input.sql \ 334 staticskytool_export_result.sql \ 330 335 staticskytool_inputs.sql \ 331 336 staticskytool_todo.sql \ -
trunk/ippTools/share/disttool_toadvance.sql
r28733 r28959 240 240 AND distComponent.fault = 0 241 241 UNION 242 -- staticsky stage 243 -- NOTE this assumes that there is only one component per staticskyRun 244 -- (one skycell) 245 SELECT 246 distRun.dist_id, 247 stage, 248 stage_id, 249 outroot, 250 label, 251 clean 252 FROM distRun 253 JOIN staticskyResult on stage_id = sky_id 254 LEFT JOIN distComponent 255 ON distRun.dist_id = distComponent.dist_id 256 WHERE 257 distRun.state = 'new' 258 AND distRun.fault = 0 259 AND distRun.stage = 'sky' 260 AND distComponent.component IS NOT NULL 261 AND distComponent.fault = 0 262 UNION 242 263 -- SSdiff stage 243 264 SELECT -
trunk/ippTools/share/staticskytool_result.sql
r28091 r28959 1 SELECT 1 SELECT DISTINCT 2 2 staticskyResult.*, 3 3 staticskyRun.state, 4 staticskyRun.tess_id,5 staticskyRun.skycell_id,6 staticskyRun.filter,7 4 staticskyRun.workdir, 8 5 staticskyRun.label, 6 stackRun.tess_id, 7 stackRun.skycell_id, 8 stackRun.filter 9 9 FROM staticskyRun 10 JOIN staticskyResult 11 USING(stack_id) 10 JOIN staticskyResult USING(sky_id) 11 JOIN staticskyInput USING(sky_id) 12 JOIN stackRun using(stack_id) -
trunk/ippTools/src/disttool.c
r28938 r28959 329 329 // stack stage doesn't require magic 330 330 no_magic = true; 331 } else if (!strcmp(stage, "sky")) { 332 magicRunType = "staticskyRun"; 333 query = pxDataGet("disttool_definebyquery_sky.sql"); 334 if (!query) { 335 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 336 psFree(where); 337 return false; 338 } 339 340 if (label) { 341 psStringAppend(&query, " AND (staticskyRun.label = '%s')", label); 342 } 343 if (dist_group) { 344 psStringAppend(&query, " AND (sticskyRun.dist_group = '%s')", dist_group); 345 } 346 // (static)sky stage doesn't require magic 347 no_magic = true; 331 348 } else if (!strcmp(stage, "SSdiff")) { 332 349 magicRunType = "diffRun"; -
trunk/ippTools/src/staticskytool.c
r28154 r28959 727 727 bool exportrunMode(pxConfig *config) 728 728 { 729 # if (0)730 729 typedef struct ExportTable { 731 730 char tableName[80]; … … 737 736 PS_ASSERT_PTR_NON_NULL(config, NULL); 738 737 739 PXOPT_LOOKUP_S64(det_id, config->args, "-s tack_id", true, false);738 PXOPT_LOOKUP_S64(det_id, config->args, "-sky_id", true, false); 740 739 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 741 740 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); … … 753 752 } 754 753 psMetadata *where = psMetadataAlloc(); 755 PXOPT_COPY_S64(config->args, where, "-s tack_id", "stack_id", "==");754 PXOPT_COPY_S64(config->args, where, "-sky_id", "sky_id", "=="); 756 755 757 756 ExportTable tables [] = { 758 {"sta ckRun", "staticskytool_export_run.sql"},759 {"sta ckInputSkyfile", "staticskytool_export_input_skyfile.sql"},760 {"sta ckSumSkyfile", "staticskytool_export_sum_skyfile.sql"},757 {"staticskyRun", "staticskytool_export_run.sql"}, 758 {"staticskyInput", "staticskytool_export_input.sql"}, 759 {"staticskyResult", "staticskytool_export_result.sql"}, 761 760 }; 762 761 … … 800 799 801 800 if (clean) { 802 if (!strcmp(tables[i].tableName, "sta ckRun")) {803 if (!pxSetStateCleaned("sta ckRun", "state", output)) {801 if (!strcmp(tables[i].tableName, "staticskyRun")) { 802 if (!pxSetStateCleaned("staticskyRun", "state", output)) { 804 803 psFree(output); 805 804 psError(PS_ERR_UNKNOWN, false, "pxSetStateClean failed for table %s", tables[i].tableName); … … 821 820 fclose (f); 822 821 823 # endif824 822 return true; 825 823 }
Note:
See TracChangeset
for help on using the changeset viewer.
