/ Check-in [16eb0fc8]
Login

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

Overview
Comment:Improvements to comments. No changes to code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | deferred-free-space
Files: files | file ages | folders
SHA3-256:16eb0fc8f8cce51eaa5305ebc9f3bd8c8d935dd3ebebab6820e5629f9292eec2
User & Date: drh 2019-02-11 19:27:36
Context
2019-02-11
22:50
Do not invoke btreeComputeFreeSpace() when not necessary. check-in: f11b0ed4 user: drh tags: deferred-free-space
19:27
Improvements to comments. No changes to code. check-in: 16eb0fc8 user: drh tags: deferred-free-space
17:22
Fix test cases. Avoid unnecessary tests for MemPage.nFree less than zero. check-in: 480a5090 user: drh tags: deferred-free-space
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  1630   1630       if( top==0 && pPage->pBt->usableSize==65536 ){
  1631   1631         top = 65536;
  1632   1632       }else{
  1633   1633         return SQLITE_CORRUPT_PAGE(pPage);
  1634   1634       }
  1635   1635     }
  1636   1636   
  1637         -  /* If there is enough space between gap and top for one more cell pointer
  1638         -  ** array entry offset, and if the freelist is not empty, then search the
  1639         -  ** freelist looking for a free slot big enough to satisfy the request.
         1637  +  /* If there is enough space between gap and top for one more cell pointer,
         1638  +  ** and if the freelist is not empty, then search the
         1639  +  ** freelist looking for a slot big enough to satisfy the request.
  1640   1640     */
  1641   1641     testcase( gap+2==top );
  1642   1642     testcase( gap+1==top );
  1643   1643     testcase( gap==top );
  1644   1644     if( (data[hdr+2] || data[hdr+1]) && gap+2<=top ){
  1645   1645       u8 *pSpace = pageFindSlot(pPage, nByte, &rc);
  1646   1646       if( pSpace ){