/ Check-in [36f97ca8]
Login

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

Overview
Comment:Remove an obsolete comment from the pager. No code changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tempfiles-25
Files: files | file ages | folders
SHA1: 36f97ca8874a03ac8699f44fe0da95b0be507cc7
User & Date: drh 2016-04-25 19:28:34
Context
2016-04-25
22:39
Add an sqlite3FaultSim() all to make it easier to simulate IO errors in a VACUUM commit. check-in: 8bfde416 user: drh tags: tempfiles-25
19:28
Remove an obsolete comment from the pager. No code changes. check-in: 36f97ca8 user: drh tags: tempfiles-25
19:20
Fix some unreachable branches in the pager. check-in: 3ae44770 user: drh tags: tempfiles-25
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  1816   1816       pPager->eState = PAGER_OPEN;
  1817   1817     }
  1818   1818   
  1819   1819     /* If Pager.errCode is set, the contents of the pager cache cannot be
  1820   1820     ** trusted. Now that there are no outstanding references to the pager,
  1821   1821     ** it can safely move back to PAGER_OPEN state. This happens in both
  1822   1822     ** normal and exclusive-locking mode.
  1823         -  **
  1824         -  ** Exception: There is no way out of the error state for temp files.
  1825         -  ** This is because it is not possible to call pager_reset() on a temp
  1826         -  ** file pager (as this may discard the only copy of some data).  */
         1823  +  */
  1827   1824     assert( pPager->errCode==SQLITE_OK || !MEMDB );
  1828   1825     if( pPager->errCode ){
  1829   1826       if( pPager->tempFile==0 ){
  1830   1827         pager_reset(pPager);
  1831   1828         pPager->changeCountDone = 0;
  1832   1829         pPager->eState = PAGER_OPEN;
  1833   1830       }else{