IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2007, 5:03:03 PM (19 years ago)
Author:
jhoblitt
Message:

change -adddiffskyfile to automatically stop the run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/difftool.c

    r11985 r11994  
    520520    }
    521521
     522    if (!psDBTransaction(config->dbh)) {
     523        psError(PS_ERR_UNKNOWN, false, "database error");
     524        return false;
     525    }
    522526
    523527    if (!p5DiffSkyfileInsert(config->dbh,
     
    527531            bg_mean_stdev
    528532        )) {
     533        if (!psDBRollback(config->dbh)) {
     534            psError(PS_ERR_UNKNOWN, false, "database error");
     535        }
     536        psError(PS_ERR_UNKNOWN, false, "database error");
     537        return false;
     538    }
     539
     540    if (!setp5RunState(config, p5_id, "stop")) {
     541        if (!psDBRollback(config->dbh)) {
     542            psError(PS_ERR_UNKNOWN, false, "database error");
     543        }
     544        psError(PS_ERR_UNKNOWN, false, "database error");
     545        return false;
     546    }
     547
     548    // point of no return
     549    if (!psDBCommit(config->dbh)) {
    529550        psError(PS_ERR_UNKNOWN, false, "database error");
    530551        return false;
Note: See TracChangeset for help on using the changeset viewer.