IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2007, 12:01:22 PM (19 years ago)
Author:
jhoblitt
Message:

refactor chiptool & db to preserve metadata history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backtrack/ippTools/src/regtool.c

    r13967 r13990  
    620620        }
    621621
    622         // insert an entry into the chipPendingExp table
    623         if (!chipQueueExpTag(config, exp_tag, NULL, NULL, NULL, NULL, NULL)) {
    624             // rollback
    625             if (!psDBRollback(config->dbh)) {
    626                 psError(PS_ERR_UNKNOWN, false, "database error");
    627             }
    628             psError(PS_ERR_UNKNOWN, false, "failed to queue chipPendingExp");
    629             psFree(output);
    630             return false;
    631         }
    632622
    633623        // set the state for the newExp to stop
     
    638628            }
    639629            psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_tag: %s", exp_tag);
     630            psFree(output);
     631            return false;
     632        }
     633
     634        // insert an entry into the chipPendingExp table
     635        // this can only be run as the newExp's state has been set to stop
     636        if (!chipQueueExpTag(config, exp_tag, NULL, NULL, NULL, NULL, NULL)) {
     637            // rollback
     638            if (!psDBRollback(config->dbh)) {
     639                psError(PS_ERR_UNKNOWN, false, "database error");
     640            }
     641            psError(PS_ERR_UNKNOWN, false, "failed to queue chipPendingExp");
    640642            psFree(output);
    641643            return false;
Note: See TracChangeset for help on using the changeset viewer.