IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25427


Ignore:
Timestamp:
Sep 17, 2009, 9:40:26 AM (17 years ago)
Author:
bills
Message:

fix bug in handling multiple databases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/destreak.pro

    r25423 r25427  
    114114      option $DB:$magicToDS_DB
    115115      $run = $run -dbname $DB:$magicToDS_DB
    116       $magicToDS_DB ++
    117       if ($magicToDS_DB >= $DB:n) set magicToDS_DB = 0
     116
     117      # only bump database number after we have gone through all of the stages
     118      if ($magicDSStage == 0)
     119          $magicToDS_DB ++
     120          if ($magicToDS_DB >= $DB:n) set magicToDS_DB = 0
     121      end
    118122    end
    119123    add_poll_args run
     
    256260      # only bump database number after we have gone through all of the stages
    257261      if ($magicDSRevertStage == 0)
    258              $magicDSToRevert_DB ++
     262          $magicDSToRevert_DB ++
     263          if ($magicDSToRevert_DB >= $DB:n) set magicDSToRevert_DB = 0
    259264      end
    260       if ($magicDSToRevert_DB >= $DB:n) set magicDSToRevert_DB = 0
    261265    end
    262266    add_poll_args run
Note: See TracChangeset for help on using the changeset viewer.