Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Get btree.c to compile with -DNDEBUG=1. (CVS 2040) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8378c144c1e1cedb7deea271fa274182 |
User & Date: | drh 2004-11-02 18:05:09.000 |
Context
2004-11-02
| ||
18:15 | Fix a problem in the pragma.test script. (CVS 2041) (check-in: a2c9c45c80 user: drh tags: trunk) | |
18:05 | Get btree.c to compile with -DNDEBUG=1. (CVS 2040) (check-in: 8378c144c1 user: drh tags: trunk) | |
14:40 | Fix an auto-vacuum bug for btree entries that span more than one overflow page. (CVS 2039) (check-in: 40249ed19c user: danielk1977 tags: trunk) | |
Changes
Changes to src/btree.c.
1 2 3 4 5 6 7 8 9 10 11 | /* ** 2004 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /* ** 2004 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** $Id: btree.c,v 1.199 2004/11/02 18:05:09 drh Exp $ ** ** This file implements a external (disk-based) database using BTrees. ** For a detailed discussion of BTrees, refer to ** ** Donald E. Knuth, THE ART OF COMPUTER PROGRAMMING, Volume 3: ** "Sorting And Searching", pages 473-480. Addison-Wesley ** Publishing Company, Reading, Massachusetts. |
︙ | ︙ | |||
1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 | rc = sqlite3pager_truncate(pBt->pPager, finDbSize); if( rc!=SQLITE_OK ) goto autovacuum_out; autovacuum_out: /* TODO: A goto autovacuum_out; will fail to call releasePage() on ** outstanding references. Fix. */ if( nRef!=*sqlite3pager_stats(pPager) ){ sqlite3pager_refdump(pPager); } assert( nRef==*sqlite3pager_stats(pPager) ); if( rc!=SQLITE_OK ){ sqlite3pager_rollback(pPager); } return rc; } #endif | > > | 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 | rc = sqlite3pager_truncate(pBt->pPager, finDbSize); if( rc!=SQLITE_OK ) goto autovacuum_out; autovacuum_out: /* TODO: A goto autovacuum_out; will fail to call releasePage() on ** outstanding references. Fix. */ #ifndef NDEBUG if( nRef!=*sqlite3pager_stats(pPager) ){ sqlite3pager_refdump(pPager); } #endif assert( nRef==*sqlite3pager_stats(pPager) ); if( rc!=SQLITE_OK ){ sqlite3pager_rollback(pPager); } return rc; } #endif |
︙ | ︙ |