1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Avoid automatically rolling back the transaction if an SQLITE_IOERR or SQLITE_FULL error occurs within sqlite3_db_cacheflush().

FossilOrigin-Name: 370b5d520c6523526988d0db5299f1bd09567782
This commit is contained in:
dan
2015-10-29 18:16:40 +00:00
parent 6fa255fd5c
commit dbf6773e88
6 changed files with 125 additions and 26 deletions

View File

@@ -765,9 +765,6 @@ int sqlite3_db_cacheflush(sqlite3 *db){
}
}
}
if( rc!=SQLITE_OK ){
sqlite3RollbackAll(db, SQLITE_ABORT_ROLLBACK);
}
sqlite3BtreeLeaveAll(db);
sqlite3_mutex_leave(db->mutex);
return ((rc==SQLITE_OK && bSeenBusy) ? SQLITE_BUSY : rc);