IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2009, 1:56:50 PM (17 years ago)
Author:
bills
Message:

change disttool -pendingcomponent to output "$outroot.$dist_id" as outdir to help make it unique
allow 'clean' raw stage distributions. (Database information only.) This is required to
support mirrors with chip stage and beyond images but not raw data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/disttool_toadvance.sql

    r23742 r23777  
    33    stage,
    44    stage_id,
    5     outroot,
     5    CONCAT_WS('.', outroot, CONVERT(dist_id, CHAR)) as outdir,
    66    label,
    77    clean
    88FROM
    99    (
    10 -- raw stage
     10-- raw stage not clean
    1111SELECT
    1212    distRun.dist_id,
     
    2323    WHERE
    2424        distRun.state = 'new'
     25        AND distRun.clean = 0
    2526        AND distRun.fault = 0
    2627        AND distRun.stage = 'raw'
     
    3132        COUNT(rawImfile.class_id) = COUNT(distComponent.component)
    3233        AND SUM(distComponent.fault) = 0
     34UNION
     35-- clean distribution of raw files (dbinfo only) only 1 component
     36SELECT
     37    distRun.dist_id,
     38    stage,
     39    stage_id,
     40    outroot,
     41    label,
     42    clean
     43    FROM distRun
     44    LEFT JOIN distComponent
     45        ON distRun.dist_id = distComponent.dist_id
     46    WHERE
     47        distRun.state = 'new'
     48        AND distRun.clean
     49        AND distRun.fault = 0
     50        AND distRun.stage = 'raw'
     51        AND distComponent.component IS NOT NULL
     52        AND distComponent.fault = 0
    3353UNION
    3454-- chip stage
Note: See TracChangeset for help on using the changeset viewer.