IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 24, 2006, 4:31:35 PM (20 years ago)
Author:
jhoblitt
Message:

change change copydoneMode() to include the pzPendingExp flush as part of it's transaction

File:
1 edited

Legend:

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

    r7969 r7970  
    161161    psFree(pending);
    162162
     163    // check for completed exps
     164    if (!pzsearchFlushPendingExp(config)) {
     165        psError(PS_ERR_UNKNOWN, false, "pzsearchFlushPendingExp() failed");
     166        return false;
     167    }
     168
    163169    // point of no return
    164170    if (!psDBCommit(config->dbh)) {
    165171        psError(PS_ERR_UNKNOWN, false, "database error");
    166         return false;
    167     }
    168 
    169     // check for completed exps
    170     if (!pzsearchFlushPendingExp(config)) {
    171         psError(PS_ERR_UNKNOWN, false, "pzsearchFlushPendingExp() failed");
    172172        return false;
    173173    }
     
    242242            // exp has no coresponding imfiles
    243243
    244             // XXX start transaction
    245 
    246244            psArray *nukeMe = psArrayAlloc(1);
    247245            nukeMe->n = 0;
     
    251249            if (!status) {
    252250                psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    253                 // XXX rollback transaction
    254251                return false;
    255252            }
    256 
    257             // XXX commit transaction
    258         }
    259     }
    260 
    261     return true;
    262 }
     253        }
     254    }
     255
     256    return true;
     257}
Note: See TracChangeset for help on using the changeset viewer.