mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Remove an unreachable test from wal.c.
FossilOrigin-Name: 7162c45673d1068d1fda55a70207a3cd77575502
This commit is contained in:
@@ -1374,10 +1374,8 @@ int sqlite3WalFrames(
|
||||
i64 iOffset = walFrameOffset(iFrame+1, nPgsz);
|
||||
|
||||
assert( isCommit );
|
||||
assert( iSegment>0 );
|
||||
|
||||
if( iSegment<SQLITE_DEFAULT_SECTOR_SIZE ){
|
||||
iSegment = SQLITE_DEFAULT_SECTOR_SIZE;
|
||||
}
|
||||
iSegment = (((iOffset+iSegment-1)/iSegment) * iSegment);
|
||||
while( iOffset<iSegment ){
|
||||
walEncodeFrame(aCksum,pLast->pgno,nTruncate,nPgsz,pLast->pData,aFrame);
|
||||
|
Reference in New Issue
Block a user