diff options
author | drh <drh@noemail.net> | 2002-02-14 12:50:33 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-02-14 12:50:33 +0000 |
commit | 1e336b42f1f72523881920d6c8fbe06d18e618f6 (patch) | |
tree | 53923e0e97cab7e340cf4035081211a0630df6fc /src | |
parent | 3cf9084a37e36255cab42cfd980ca92b8b3df6d6 (diff) | |
download | sqlite-1e336b42f1f72523881920d6c8fbe06d18e618f6.tar.gz sqlite-1e336b42f1f72523881920d6c8fbe06d18e618f6.zip |
Fix an incorrect assert() in pager.c. (CVS 369)
FossilOrigin-Name: 08a68e098a677c508652ba2ff4bd63185cab7546
Diffstat (limited to 'src')
-rw-r--r-- | src/pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pager.c b/src/pager.c index d4fe1852d..bdb5741e6 100644 --- a/src/pager.c +++ b/src/pager.c @@ -18,7 +18,7 @@ ** file simultaneously, or one process from reading the database while ** another is writing. ** -** @(#) $Id: pager.c,v 1.38 2002/02/02 18:49:20 drh Exp $ +** @(#) $Id: pager.c,v 1.39 2002/02/14 12:50:35 drh Exp $ */ #include "sqliteInt.h" #include "pager.h" @@ -1093,7 +1093,7 @@ int sqlitepager_write(void *pData){ ** then write the current page to the checkpoint journal. */ if( pPager->ckptOpen && !pPg->inCkpt && (int)pPg->pgno<=pPager->ckptSize ){ - assert( pPg->inJournal ); + assert( pPg->inJournal || (int)pPg->pgno>pPager->origDbSize ); rc = sqliteOsWrite(&pPager->cpfd, &pPg->pgno, sizeof(Pgno)); if( rc==SQLITE_OK ){ rc = sqliteOsWrite(&pPager->cpfd, pData, SQLITE_PAGE_SIZE); |