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

Fix a couple of problems in handling OOM conditions within LSM.

FossilOrigin-Name: 989a5c1745a7145c14c6d9b713176ecba6b99296de8bdd09f666eeef10da9c2e
This commit is contained in:
dan
2017-07-04 17:25:45 +00:00
parent 92395c59ff
commit 038af0bdc6
4 changed files with 16 additions and 18 deletions

View File

@ -39,11 +39,9 @@ int lsmStringExtend(LsmString *pStr, int nNew){
lsmFree(pStr->pEnv, pStr->z);
nAlloc = 0;
pStr->n = -1;
pStr->z = 0;
}else{
pStr->nAlloc = nAlloc;
pStr->z = zNew;
}
pStr->nAlloc = nAlloc;
pStr->z = zNew;
}
return (pStr->z ? LSM_OK : LSM_NOMEM_BKPT);
}