/ Check-in [5e9559c0]
Login

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

Overview
Comment:Remove leftover PGHDR_TO_DATA macro from pager.c. Ticket #3323. (CVS 5574)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5e9559c0490b9e0395e1da4d36bd33942350978c
User & Date: danielk1977 2008-08-21 04:35:19
Context
2008-08-21
04:41
Move an assert() in sqlite3PcacheDirtyPage() so that it does not occur before local variable declarations. Ticket #3325. (CVS 5575) check-in: 899fa19d user: danielk1977 tags: trunk
04:35
Remove leftover PGHDR_TO_DATA macro from pager.c. Ticket #3323. (CVS 5574) check-in: 5e9559c0 user: danielk1977 tags: trunk
2008-08-20
22:06
Modify the sqlite3VdbeUnpackRecord() interface to force the temporary space to be 8-byte aligned. This might be important for Sparc. Ticket #3318. (CVS 5573) check-in: 00b17798 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

    14     14   ** The pager is used to access a database disk file.  It implements
    15     15   ** atomic commit and rollback through the use of a journal file that
    16     16   ** is separate from the database file.  The pager also implements file
    17     17   ** locking to prevent two processes from writing the same database
    18     18   ** file simultaneously, or one process from reading the database while
    19     19   ** another is writing.
    20     20   **
    21         -** @(#) $Id: pager.c,v 1.471 2008/08/20 21:47:46 drh Exp $
           21  +** @(#) $Id: pager.c,v 1.472 2008/08/21 04:35:19 danielk1977 Exp $
    22     22   */
    23     23   #ifndef SQLITE_OMIT_DISKIO
    24     24   #include "sqliteInt.h"
    25     25   
    26     26   /*
    27     27   ** Macros for troubleshooting.  Normally turned off
    28     28   */
................................................................................
  2554   2554     PAGER_INCR(sqlite3_pager_readdb_count);
  2555   2555     PAGER_INCR(pPager->nRead);
  2556   2556     IOTRACE(("PGIN %p %d\n", pPager, pgno));
  2557   2557     if( pgno==1 ){
  2558   2558       memcpy(&pPager->dbFileVers, &((u8*)pPg->pData)[24],
  2559   2559                                                 sizeof(pPager->dbFileVers));
  2560   2560     }
  2561         -  CODEC1(pPager, PGHDR_TO_DATA(pPg), pPg->pgno, 3);
         2561  +  CODEC1(pPager, pPg->pData, pPg->pgno, 3);
  2562   2562     PAGERTRACE4("FETCH %d page %d hash(%08x)\n",
  2563   2563                  PAGERID(pPager), pPg->pgno, pager_pagehash(pPg));
  2564   2564     return rc;
  2565   2565   }
  2566   2566   
  2567   2567   
  2568   2568   /*