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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user