1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

If a pager is already in the error-state when CommitPhaseOne() is called, exit early. (CVS 5134)

FossilOrigin-Name: 443cf1056c73ae89d0efcc7a462455c078b3a4a8
This commit is contained in:
danielk1977
2008-05-15 11:08:07 +00:00
parent 28bbd22307
commit dad31b5e11
4 changed files with 68 additions and 15 deletions

View File

@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
** @(#) $Id: pager.c,v 1.447 2008/05/15 08:34:54 danielk1977 Exp $
** @(#) $Id: pager.c,v 1.448 2008/05/15 11:08:08 danielk1977 Exp $
*/
#ifndef SQLITE_OMIT_DISKIO
#include "sqliteInt.h"
@@ -4614,6 +4614,10 @@ int sqlite3PagerCommitPhaseOne(
){
int rc = SQLITE_OK;
if( pPager->errCode ){
return pPager->errCode;
}
/* If no changes have been made, we can leave the transaction early.
*/
if( pPager->dbModified==0 &&