Changeset 8520 for trunk


Ignore:
Timestamp:
05/16/07 15:56:17 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8519 r8520  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2007/05/16 Daniel Hoehne
     21
     22   * datacenter/tools/resetdataset:
     23     - several bugfixes (mainly typos, for wobble datasets there was one
     24       colon too much due to no off sequences)
     25
     26
     27
    2028 2007/05/16 Thomas Bretz
    2129
  • trunk/MagicSoft/Mars/datacenter/tools/resetdataset

    r8380 r8520  
    3030
    3131datasetpath=/magic/datasets
    32 datasetpath=/test/bu.2006.10.05/datasets
     32#datasetpath=/test/bu.2006.10.05/datasets
    3333
    3434function usage()
     
    9393
    9494
    95 alias mymysql='mysql -u $user --password=$ps --host=vela $db -s -e'
     95alias mymysql='mysql -u $user --password=$pw --host=vela $db -s -e'
    9696
    97 whereclause1=" WHERE fDataSetNumer=$dataset"
     97whereclause1=" WHERE fDataSetNumber=$dataset"
    9898statusreset=", fStartTime=NULL, fFailedTime=NULL, fFailedCode=NULL, fFailedCodeAdd=NULL, fReturnCode=NULL"
    9999query1="UPDATE DataSetProcessStatus SET fStarFilesAvail=NULL, fGanymed=NULL, fFillGanymed=NULL"
    100100query1=$query1$statusreset$whereclause1
    101101
    102 query2="DELETE FROM GANYMED "$whereclause1
     102query2="DELETE FROM Ganymed "$whereclause1
    103103
    104104no=`printf %08d $dataset`
     
    118118echo " Found the following off sequences: $seqoff"
    119119
    120 whereclause2=" WHERE fSequenceFirst IN ($seqon,$seqoff)"
    121 query3="UPDATE SequenceProcessStatus SET fAllFilesAvail=NULL, fCallisto=NULL, fStar=NULL "
    122 query3=$query3$setstatusreseet$whereclause2
     120if [ "$seqoff" = "" ]
     121then
     122   whereclause2=" WHERE fSequenceFirst IN ($seqon)"
     123else
     124   whereclause2=" WHERE fSequenceFirst IN ($seqon,$seqoff)"
     125fi
     126query3="UPDATE SequenceProcessStatus SET fCallisto=NULL, fStar=NULL "
     127query3=$query3$statusreset$whereclause2
    123128
    124129query4="DELETE FROM Calibration"$whereclause2
Note: See TracChangeset for help on using the changeset viewer.