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

Fix a faulty assert() in the pager. (CVS 4083)

FossilOrigin-Name: 4cff47b06132768e92ba2235cab5c17d1082f8f9
This commit is contained in:
drh
2007-06-16 18:39:41 +00:00
parent 68a6b5ec98
commit 4f0aee41c3
3 changed files with 10 additions and 10 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.346 2007/06/16 11:17:46 drh Exp $
** @(#) $Id: pager.c,v 1.347 2007/06/16 18:39:42 drh Exp $
*/
#ifndef SQLITE_OMIT_DISKIO
#include "sqliteInt.h"
@@ -4346,7 +4346,7 @@ int sqlite3PagerMovepage(Pager *pPager, DbPage *pPg, Pgno pgno){
pager_get_content(pPg);
if( pPg->needSync ){
needSyncPgno = pPg->pgno;
assert( pPg->inJournal );
assert( pPg->inJournal || (int)pgno>pPager->origDbSize );
assert( pPg->dirty );
assert( pPager->needSync );
}