mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
If the sector size is unspecified (initially 0) then set it to 512, not to 32.
FossilOrigin-Name: 8861b5c16031ad570ffbe17b3ec8163b136a7f63
This commit is contained in:
@@ -1794,7 +1794,7 @@ static void setSectorSize(Pager *pPager){
|
||||
pPager->sectorSize = sqlite3OsSectorSize(pPager->fd);
|
||||
}
|
||||
if( pPager->sectorSize<32 ){
|
||||
pPager->sectorSize = 32;
|
||||
pPager->sectorSize = 512;
|
||||
}
|
||||
if( pPager->sectorSize>MAX_SECTOR_SIZE ){
|
||||
assert( MAX_SECTOR_SIZE>=512 );
|
||||
|
Reference in New Issue
Block a user