1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix an LSM crash that could occur if LSM_CONFIG_AUTOFLUSH was set to 0.

FossilOrigin-Name: 05346f83d587e6049da0e8ec5f62c749daa9e80359cf48f8c37e333e6a1e7d2a
This commit is contained in:
dan
2018-01-05 07:57:54 +00:00
parent 35100fb194
commit 8503d6451b
6 changed files with 27 additions and 12 deletions

View File

@ -683,7 +683,7 @@ static int doWriteOp(
int nDiff;
if( nQuant>pDb->nTreeLimit ){
nQuant = pDb->nTreeLimit;
nQuant = LSM_MAX(pDb->nTreeLimit, pgsz);
}
nBefore = lsmTreeSize(pDb);