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

Remove a NEVER() from btree.c that could occur in a very obscure tested

evaluation with an I/O error on fstat().

FossilOrigin-Name: d5861d9ffecca499d79d722b5f742ffe3a5aff44
This commit is contained in:
drh
2009-12-03 19:40:00 +00:00
parent e2e5145441
commit 313aa5735a
3 changed files with 19 additions and 12 deletions

View File

@@ -2346,11 +2346,8 @@ static int newDatabase(BtShared *pBt){
int nPage;
assert( sqlite3_mutex_held(pBt->mutex) );
/* The database size has already been measured and cached, so failure
** is impossible here. If the original size measurement failed, then
** processing aborts before entering this routine. */
rc = sqlite3PagerPagecount(pBt->pPager, &nPage);
if( NEVER(rc!=SQLITE_OK) || nPage>0 ){
if( rc!=SQLITE_OK || nPage>0 ){
return rc;
}
pP1 = pBt->pPage1;