IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16152


Ignore:
Timestamp:
Jan 18, 2008, 4:49:36 PM (18 years ago)
Author:
jhoblitt
Message:

cleanup addprocessedimfileMode()
add end_stage support to chipProcessedCompleteExp()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/end_stage/ippTools/src/chiptool.c

    r16144 r16152  
    338338    }
    339339
    340     chipProcessedImfileRow *imfile = chipProcessedImfileRowAlloc(
     340    if (!chipProcessedImfileInsert(config->dbh,
    341341        (psS64)atoll(chip_id),
    342342        (psS64)atoll(exp_id),
     
    363363        path_base,
    364364        code
    365     );
    366     if (!imfile) {
     365    )) {
    367366        // rollback
    368367        if (!psDBRollback(config->dbh)) {
    369368            psError(PS_ERR_UNKNOWN, false, "database error");
    370369        }
    371         psError(PS_ERR_UNKNOWN, false, "failed to alloc chipProcessedImfileRow object");
    372         return false;
    373     }
    374     if (!chipProcessedImfileInsertObject(config->dbh, imfile)) {
    375         // rollback
    376         if (!psDBRollback(config->dbh)) {
    377             psError(PS_ERR_UNKNOWN, false, "database error");
    378         }
    379         psError(PS_ERR_UNKNOWN, false, "database error");
    380         psFree(imfile);
    381         return false;
    382     }
    383 
    384 
     370        psError(PS_ERR_UNKNOWN, false, "database error");
     371        return false;
     372    }
    385373
    386374    // XXX I've decided to make the transaction cover the Exp migration as
     
    644632            return false;
    645633        }
     634
     635        // should we stop here or proceed on to the cam stage?
     636        if (psStrcasestr(chipRun->end_stage, "chip")) {
     637            psFree(chipRun);
     638            continue;
     639        }
     640        // else continue on...
    646641
    647642        // camQueueChipID() can only be run after chipRun.state has been set to
Note: See TracChangeset for help on using the changeset viewer.