IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23459


Ignore:
Timestamp:
Mar 20, 2009, 1:48:35 PM (17 years ago)
Author:
bills
Message:

Don't finish warpRuns unless none of the skyfiles faulted.
To allow reverting existing warpRuns with faults that are in the full state
and old state leave in the code that changes the warpRun.state back to new but don't
require a row be updated.

Location:
trunk/ippTools
Files:
2 edited

Legend:

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

    r23430 r23459  
    1919   HAVING
    2020       COUNT(warpSkyCellMap.warp_id) = COUNT(warpSkyfile.warp_id)
     21       AND SUM(warpSkyfile.fault) = 0
    2122 ) as Foo
  • trunk/ippTools/src/warptool.c

    r23430 r23459  
    10951095    int numUpdated;                     // Number updated
    10961096    {
     1097        // This query is no longer necessary because we do not set warpRun's to full statte
     1098        // if they have faulted skyfiles.
     1099        // We do have runs in the DB that follow the old convention so we leave this in for
     1100        // now
    10971101        psString query = pxDataGet("warptool_revertwarped_update.sql");
    10981102        if (!query) {
     
    11221126        numUpdated = psDBAffectedRows(config->dbh);
    11231127
     1128#ifdef notdef
     1129        // new warpRuns won't get changed (they're already new) so don't require an update
    11241130        if (numUpdated < 1) {
    1125             psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
     1131            psError(PS_ERR_UNKNOWN, false, "should have affected at least 1 row");
    11261132            if (!psDBRollback(config->dbh)) {
    11271133                psError(PS_ERR_UNKNOWN, false, "database error");
     
    11291135            return false;
    11301136        }
     1137#endif
    11311138    }
    11321139
Note: See TracChangeset for help on using the changeset viewer.