aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <>2024-10-22 18:00:26 +0000
committerdrh <>2024-10-22 18:00:26 +0000
commitc8284c766a7e525898a72858540bc12365fa55f6 (patch)
tree24c9f53ab6f132ab9ba39f1377b7da721b47daeb /src/os_unix.c
parent76e48f4d6648f514a47a4c769c931126da2a7696 (diff)
downloadsqlite-c8284c766a7e525898a72858540bc12365fa55f6.tar.gz
sqlite-c8284c766a7e525898a72858540bc12365fa55f6.zip
Add the SQLITE_IOCAP_BYPASS device characteristic. Do not allow the
SQLITE_DIRECT_OVERFLOW_READ optimization if that capability is missing. FossilOrigin-Name: f50ae00ce9ff572e6bd5e2788602ba356383526ab7289622a32fbf52926c6df0
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index f71fa8e02..d99965821 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4128,6 +4128,7 @@ static void setDeviceCharacteristics(unixFile *pFd){
if( pFd->ctrlFlags & UNIXFILE_PSOW ){
pFd->deviceCharacteristics |= SQLITE_IOCAP_POWERSAFE_OVERWRITE;
}
+ pFd->deviceCharacteristics |= SQLITE_IOCAP_BYPASS;
pFd->sectorSize = SQLITE_DEFAULT_SECTOR_SIZE;
}