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

Fix a problem causing LSM to add unnecessary padding to empty segments in

compressed databases.

FossilOrigin-Name: 1bc2d04645c5239ba9a30a13f6fb3c8cc46461c864e7927012bc0ad305eb705e
This commit is contained in:
dan
2017-11-08 11:14:53 +00:00
parent 592eca1fda
commit 3e846cb81f
4 changed files with 12 additions and 12 deletions

View File

@ -2803,7 +2803,7 @@ int lsmFsSortedPadding(
Segment *pSeg
){
int rc = LSM_OK;
if( pFS->pCompress ){
if( pFS->pCompress && pSeg->iFirst ){
Pgno iLast2;
Pgno iLast = pSeg->iLastPg; /* Current last page of segment */
int nPad; /* Bytes of padding required */