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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user