mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add more tests for LSM log file recovery. Fix a problem in recovering log
files that contain range deletes. FossilOrigin-Name: e34eafd4c5b2bbf2735e136ad69b67bb4288ad4d01a0128d8e107ac46209a182
This commit is contained in:
@ -669,11 +669,8 @@ static int doWriteOp(
|
||||
}
|
||||
|
||||
if( rc==LSM_OK ){
|
||||
if( bDeleteRange==0 ){
|
||||
rc = lsmLogWrite(pDb, (void *)pKey, nKey, (void *)pVal, nVal);
|
||||
}else{
|
||||
/* TODO */
|
||||
}
|
||||
int eType = (bDeleteRange ? LSM_DRANGE : (nVal>=0?LSM_WRITE:LSM_DELETE));
|
||||
rc = lsmLogWrite(pDb, eType, (void *)pKey, nKey, (void *)pVal, nVal);
|
||||
}
|
||||
|
||||
lsmSortedSaveTreeCursors(pDb);
|
||||
|
Reference in New Issue
Block a user