Differences From Artifact [2c76e52558]:
- File src/db.c — part of check-in [f1efc90595] at 2011-01-19 16:28:30 on branch trunk — Do not drop the accesslog table on a rebuild. If the accesslog table does not exist, do not generate and error on the User-Log report. (user: drh size: 54820)
To Artifact [d95d2e82a6]:
- File src/db.c — part of check-in [69f43fc077] at 2011-01-28 20:56:28 on branch experimental — Add a new meta-data table named LEAF that holds a precomputed set of all leaves in the checkin DAG. Use this precomputed table rather than trying to compute the LEAFs on the fly, as a performance enhancement for repositories with many checkins. A rebuild is required. (user: drh size: 54870) [more...]
| ︙ | |||
121 122 123 124 125 126 127 128 129 130 131 132 133 134 | 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | + |
void db_end_transaction(int rollbackFlag){
if( g.db==0 ) return;
if( nBegin<=0 ) return;
if( rollbackFlag ) doRollback = 1;
nBegin--;
if( nBegin==0 ){
int i;
if( doRollback==0 ) leaf_do_pending_checks();
for(i=0; doRollback==0 && i<nCommitHook; i++){
doRollback |= aHook[i].xHook();
}
while( pAllStmt ){
db_finalize(pAllStmt);
}
db_multi_exec(doRollback ? "ROLLBACK" : "COMMIT");
|
| ︙ |