1
0
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:
drh
2009-11-11 23:58:06 +00:00
parent 0abaefefd6
commit ae2a348dbd
3 changed files with 11 additions and 11 deletions

View File

@@ -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 );