/ Check-in [8861b5c1]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If the sector size is unspecified (initially 0) then set it to 512, not to 32.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8861b5c16031ad570ffbe17b3ec8163b136a7f63
User & Date: drh 2009-11-11 23:58:06
Context
2009-11-12
03:13
Adjustments to the implementation of LIMIT so that it uses fewer opcodes. check-in: 39d5b292 user: drh tags: trunk
2009-11-11
23:58
If the sector size is unspecified (initially 0) then set it to 512, not to 32. check-in: 8861b5c1 user: drh tags: trunk
23:48
Remove an obsolete (and incorrect) comment from sqlite3MemCompare(). No changes to code. check-in: c15b70b3 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  1790   1790       /* Sector size doesn't matter for temporary files. Also, the file
  1791   1791       ** may not have been opened yet, in which case the OsSectorSize()
  1792   1792       ** call will segfault.
  1793   1793       */
  1794   1794       pPager->sectorSize = sqlite3OsSectorSize(pPager->fd);
  1795   1795     }
  1796   1796     if( pPager->sectorSize<32 ){
  1797         -    pPager->sectorSize = 32;
         1797  +    pPager->sectorSize = 512;
  1798   1798     }
  1799   1799     if( pPager->sectorSize>MAX_SECTOR_SIZE ){
  1800   1800       assert( MAX_SECTOR_SIZE>=512 );
  1801   1801       pPager->sectorSize = MAX_SECTOR_SIZE;
  1802   1802     }
  1803   1803   }
  1804   1804