IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24499


Ignore:
Timestamp:
Jun 18, 2009, 4:33:25 PM (17 years ago)
Author:
Paul Price
Message:

Only set state = 'full' when not faulting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippTools/src/pubtool.c

    r24456 r24499  
    277277    }
    278278
    279     if (!p_psDBRunQueryF(config->dbh,
    280                          "UPDATE publishRun SET state = 'full' WHERE pub_id = %" PRId64,
    281                          pub_id)) {
    282         psError(PS_ERR_UNKNOWN, false, "Database error");
    283         if (!psDBRollback(config->dbh)) {
    284             psError(PS_ERR_UNKNOWN, false, "Database error");
    285         }
    286         return false;
     279    if (fault != 0) {
     280        if (!p_psDBRunQueryF(config->dbh,
     281                             "UPDATE publishRun SET state = 'full' WHERE pub_id = %" PRId64,
     282                             pub_id)) {
     283            psError(PS_ERR_UNKNOWN, false, "Database error");
     284            if (!psDBRollback(config->dbh)) {
     285            psError(PS_ERR_UNKNOWN, false, "Database error");
     286            }
     287            return false;
     288        }
    287289    }
    288290
Note: See TracChangeset for help on using the changeset viewer.