diff options
author | drh <drh@noemail.net> | 2020-11-18 21:50:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-11-18 21:50:05 +0000 |
commit | f56a4bfcd12cb7990ef171ffb89d2a27cd03ed4e (patch) | |
tree | 32971050ece8f7cd4bc8705fefc56406b47bc983 /src/malloc.c | |
parent | 5a07d10fd15408218a6324bea6ff9ec080a73218 (diff) | |
download | sqlite-f56a4bfcd12cb7990ef171ffb89d2a27cd03ed4e.tar.gz sqlite-f56a4bfcd12cb7990ef171ffb89d2a27cd03ed4e.zip |
Improvements to the mechanism that attempts to report SQLITE_CORRUPT if
pread() says that the underlying filesystem is corrupt.
FossilOrigin-Name: b887c7504e7edeba758f3c1203c6cc56eef499fe05e7e6c6d82939bf7d78c57f
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/malloc.c b/src/malloc.c index 79366d548..a0f7a739c 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -799,9 +799,6 @@ static SQLITE_NOINLINE int apiHandleError(sqlite3 *db, int rc){ sqlite3Error(db, SQLITE_NOMEM); return SQLITE_NOMEM_BKPT; } - if( rc==SQLITE_IOERR_CORRUPTFS ){ - return SQLITE_CORRUPT_BKPT; - } return rc & db->errMask; } |