diff options
author | drh <drh@noemail.net> | 2011-12-17 19:49:02 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-12-17 19:49:02 +0000 |
commit | 8bbaa89d8d69761bf81b21d07d8eb7397ab9b6bb (patch) | |
tree | 64af43b13bb293174bfc25a2f25f7aa1f75728ae /src/os_unix.c | |
parent | 9c0e29371e7d97ade110adbf61a250965f291390 (diff) | |
download | sqlite-8bbaa89d8d69761bf81b21d07d8eb7397ab9b6bb.tar.gz sqlite-8bbaa89d8d69761bf81b21d07d8eb7397ab9b6bb.zip |
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
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index aa7002885..a9d7de832 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -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 |