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

Fix further OOM handling cases in LSM.

FossilOrigin-Name: ca757c8665e27de884086b2aab2bd1db481e2d12f2afe136ec151bf5a0e65b91
This commit is contained in:
dan
2017-07-04 19:23:32 +00:00
parent 038af0bdc6
commit 431a53fde2
6 changed files with 21 additions and 16 deletions

View File

@ -377,6 +377,7 @@ int lsmLogBegin(lsm_db *pDb){
lsmStringInit(&pNew->buf, pDb->pEnv);
rc = lsmStringExtend(&pNew->buf, 2);
}
pDb->pLogWriter = pNew;
}else{
pNew = pDb->pLogWriter;
assert( (u8 *)(&pNew[1])==(u8 *)(&((&pNew->buf)[1])) );
@ -468,7 +469,7 @@ int lsmLogBegin(lsm_db *pDb){
pNew->jump.iEnd = lastByteOnSector(pNew, pNew->jump.iEnd);
}
pDb->pLogWriter = pNew;
assert( pDb->pLogWriter==pNew );
return rc;
}