diff options
author | drh <> | 2024-10-22 18:26:03 +0000 |
---|---|---|
committer | drh <> | 2024-10-22 18:26:03 +0000 |
commit | 96501c89d504d56fbef8c6d5b8f9bcab85a735d0 (patch) | |
tree | d1a9b04c3b19d448fb2a2b746f494da0981a4b35 /src/pager.c | |
parent | c8284c766a7e525898a72858540bc12365fa55f6 (diff) | |
download | sqlite-96501c89d504d56fbef8c6d5b8f9bcab85a735d0.tar.gz sqlite-96501c89d504d56fbef8c6d5b8f9bcab85a735d0.zip |
Rename to SQLITE_IOCAP_SUBPAGE_READ.
FossilOrigin-Name: dd446ef1816f4e95ce29de0b3841dd0a6c983646fd2dd271c2db8f3263478164
Diffstat (limited to 'src/pager.c')
-rw-r--r-- | src/pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pager.c b/src/pager.c index 1b624a300..baaf4afbf 100644 --- a/src/pager.c +++ b/src/pager.c @@ -809,7 +809,7 @@ static const unsigned char aJournalMagic[] = { ** by the b-tree layer. This is the case if: ** ** (1) the database file is open -** (2) the VFS for the database has BYPASS capability +** (2) the VFS for the database is able to do unaligned sub-page reads ** (3) there are no dirty pages in the cache, and ** (4) the desired page is not currently in the wal file. */ @@ -819,7 +819,7 @@ int sqlite3PagerDirectReadOk(Pager *pPager, Pgno pgno){ if( pPager->fd->pMethods==0 ) return 0; /* Case (1) */ assert( pPager->fd->pMethods->xDeviceCharacteristics!=0 ); if( (pPager->fd->pMethods->xDeviceCharacteristics(pPager->fd) - & SQLITE_IOCAP_BYPASS)==0 ){ + & SQLITE_IOCAP_SUBPAGE_READ)==0 ){ return 0; /* Case (2) */ } if( sqlite3PCacheIsDirty(pPager->pPCache) ) return 0; /* Failed (3) */ |