mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix the pager so that it handles persistent I/O errors correctly.
Update the testing infrastructure so that it tests for persistent I/O errors instead of just transient errors. (CVS 3690) FossilOrigin-Name: ea8507a796c65041f7e720edea89f919fca1a028
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.287 2007/03/15 01:16:48 drh Exp $
|
||||
** @(#) $Id: pager.c,v 1.288 2007/03/15 12:51:16 drh Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -1860,6 +1860,9 @@ int sqlite3pager_pagecount(Pager *pPager){
|
||||
i64 n;
|
||||
int rc;
|
||||
assert( pPager!=0 );
|
||||
if( pPager->errCode ){
|
||||
return 0;
|
||||
}
|
||||
if( pPager->dbSize>=0 ){
|
||||
n = pPager->dbSize;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user