mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Do not remove pages from the cache of an in-memory database due to a
failure to acquire the page due to it being larger than the maximum page size. Fix for [forum:/forumpost/a19bb49140|forum post a19bb49140]. FossilOrigin-Name: 982b35563da685dfdf50cbe4a7ae829d3b428e03587028df7efe520f819b1dc2
This commit is contained in:
@@ -5524,6 +5524,10 @@ static int getPageNormal(
|
||||
if( !isOpen(pPager->fd) || pPager->dbSize<pgno || noContent ){
|
||||
if( pgno>pPager->mxPgno ){
|
||||
rc = SQLITE_FULL;
|
||||
if( pgno<=pPager->dbSize ){
|
||||
sqlite3PcacheRelease(pPg);
|
||||
pPg = 0;
|
||||
}
|
||||
goto pager_acquire_err;
|
||||
}
|
||||
if( noContent ){
|
||||
|
Reference in New Issue
Block a user