Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix a broken assert() in pager.c. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
13108ce13c281f31aa60b403567710ae |
User & Date: | dan 2011-01-25 11:33:01.000 |
Context
2011-01-25
| ||
13:43 | Fix a couple of typos in comments. No changes to actual code. (check-in: 9167fdb356 user: dan tags: trunk) | |
11:33 | Fix a broken assert() in pager.c. (check-in: 13108ce13c user: dan tags: trunk) | |
09:54 | Fix a problem in memsubsys1.test. Modifications to test code only. (check-in: 7ef3f7cba7 user: dan tags: trunk) | |
Changes
Changes to src/pager.c.
︙ | ︙ | |||
5620 5621 5622 5623 5624 5625 5626 | ** or pages with the Pager.noSync flag set. ** ** If successful, or if called on a pager for which it is a no-op, this ** function returns SQLITE_OK. Otherwise, an IO error code is returned. */ int sqlite3PagerSync(Pager *pPager){ int rc; /* Return code */ | < > > | 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 | ** or pages with the Pager.noSync flag set. ** ** If successful, or if called on a pager for which it is a no-op, this ** function returns SQLITE_OK. Otherwise, an IO error code is returned. */ int sqlite3PagerSync(Pager *pPager){ int rc; /* Return code */ if( pPager->noSync ){ rc = SQLITE_OK; }else{ assert( !MEMDB ); rc = sqlite3OsSync(pPager->fd, pPager->syncFlags); } if( isOpen(pPager->fd) ){ assert( !MEMDB ); sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SYNC, (void *)&rc); } return rc; } /* ** This function may only be called while a write-transaction is active in |
︙ | ︙ |