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

Disable memory-mapped I/O when the codec is enabled.

FossilOrigin-Name: 340cca3079cd7aac2f51071435666e9e00ed8bd5
This commit is contained in:
drh
2013-04-16 14:52:47 +00:00
parent 5824e05315
commit 0f2340132f
3 changed files with 11 additions and 8 deletions

View File

@@ -5220,6 +5220,9 @@ int sqlite3PagerAcquire(
** temporary or in-memory database. */
const int bMmapOk = (pgno!=1 && USEFETCH(pPager)
&& (pPager->eState==PAGER_READER || (flags & PAGER_ACQUIRE_READONLY))
#ifdef SQLITE_HAS_CODEC
&& pPager->xCodec==0
#endif
);
assert( pPager->eState>=PAGER_READER );