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