IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2010, 8:39:32 AM (16 years ago)
Author:
bills
Message:

Change the destreak cleanup to preserve the rows in the magicDSFile table

File:
1 edited

Legend:

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

    r29495 r29561  
    22    magicDSRun.magic_ds_id,
    33    magicDSRun.magic_id,
     4    magicDSRun.state,
    45    chipRun.exp_id,
    56    chipRun.magicked,
     
    3738    ON magicDSRun.label = Label.label
    3839WHERE
    39     magicDSRun.state = 'new'
     40    ((magicDSRun.state = 'new' AND magicDSFile.component IS NULL)
     41     OR (magicDSRun.state = 'update' AND magicDSFile.data_state = 'update'
     42         AND magicDSFile.fault = 0))
    4043    AND magicDSRun.stage = 'chip'
    4144    AND (chipRun.state = 'full' OR (chipRun.state = 'update' and chipProcessedImfile.data_state = 'full'))
    4245    AND chipProcessedImfile.fault = 0
    4346    AND chipProcessedImfile.quality = 0
    44     AND magicDSFile.component IS NULL
    4547    AND (Label.active OR Label.active IS NULL)
Note: See TracChangeset for help on using the changeset viewer.