aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-11-18 21:50:05 +0000
committerdrh <drh@noemail.net>2020-11-18 21:50:05 +0000
commitf56a4bfcd12cb7990ef171ffb89d2a27cd03ed4e (patch)
tree32971050ece8f7cd4bc8705fefc56406b47bc983 /src/malloc.c
parent5a07d10fd15408218a6324bea6ff9ec080a73218 (diff)
downloadsqlite-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.c3
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;
}