1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Use

this device characteristic to reduce the required work in journaling.
A side effect is that this changes the default page exists back to 1024
even with the use of statvfs().

FossilOrigin-Name: a0be6ea464695fdf1eaf2b7cf0652778617814f2
This commit is contained in:
drh
2011-12-17 19:49:02 +00:00
parent 9c0e29371e
commit 8bbaa89d8d
9 changed files with 65 additions and 40 deletions

View File

@@ -3609,7 +3609,7 @@ static int unixSectorSize(sqlite3_file *pFile){
*/
static int unixDeviceCharacteristics(sqlite3_file *NotUsed){
UNUSED_PARAMETER(NotUsed);
return 0;
return SQLITE_IOCAP_ZERO_DAMAGE;
}
#ifndef SQLITE_OMIT_WAL