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

Remove two more overzealous assert() statements. (CVS 6932)

FossilOrigin-Name: 788aa9dde9e76f67f22c07a904faf03e97e032c6
This commit is contained in:
drh
2009-07-25 00:13:58 +00:00
parent 16ff1700a9
commit d4e5cd05a4
3 changed files with 9 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.618 2009/07/25 00:10:46 drh Exp $
** @(#) $Id: pager.c,v 1.619 2009/07/25 00:13:59 drh Exp $
*/
#ifndef SQLITE_OMIT_DISKIO
#include "sqliteInt.h"
@@ -2406,8 +2406,7 @@ static void pagerReportSize(Pager *pPager){
*/
int sqlite3PagerSetPagesize(Pager *pPager, u16 *pPageSize, int nReserve){
int rc = pPager->errCode;
assert( pPager->dbSize==0 );
assert( sqlite3PcacheRefCount(pPager->pPCache)==0 );
if( rc==SQLITE_OK ){
u16 pageSize = *pPageSize;
assert( pageSize==0 || (pageSize>=512 && pageSize<=SQLITE_MAX_PAGE_SIZE) );