/ Check-in [13108ce1]
Login

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

Overview
Comment:Fix a broken assert() in pager.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 13108ce13c281f31aa60b403567710ae3d925797
User & Date: dan 2011-01-25 11:33:01
Context
2011-01-25
13:43
Fix a couple of typos in comments. No changes to actual code. check-in: 9167fdb3 user: dan tags: trunk
11:33
Fix a broken assert() in pager.c. check-in: 13108ce1 user: dan tags: trunk
09:54
Fix a problem in memsubsys1.test. Modifications to test code only. check-in: 7ef3f7cb user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  5620   5620   ** or pages with the Pager.noSync flag set.
  5621   5621   **
  5622   5622   ** If successful, or if called on a pager for which it is a no-op, this
  5623   5623   ** function returns SQLITE_OK. Otherwise, an IO error code is returned.
  5624   5624   */
  5625   5625   int sqlite3PagerSync(Pager *pPager){
  5626   5626     int rc;                              /* Return code */
  5627         -  assert( !MEMDB );
  5628   5627     if( pPager->noSync ){
  5629   5628       rc = SQLITE_OK;
  5630   5629     }else{
         5630  +    assert( !MEMDB );
  5631   5631       rc = sqlite3OsSync(pPager->fd, pPager->syncFlags);
  5632   5632     }
  5633   5633     if( isOpen(pPager->fd) ){
         5634  +    assert( !MEMDB );
  5634   5635       sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SYNC, (void *)&rc);
  5635   5636     }
  5636   5637     return rc;
  5637   5638   }
  5638   5639   
  5639   5640   /*
  5640   5641   ** This function may only be called while a write-transaction is active in