/ Check-in [11054cf5]
Login

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

Overview
Comment:Add another PAGERTRACE() macro to show when pages are added to Pager.pAllRead. No impact on production builds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | begin-concurrent
Files: files | file ages | folders
SHA3-256:11054cf5e8c24ef9ca869d558a0ca6750b56103c3b3793dc4afcef75192ea943
User & Date: drh 2017-08-11 20:22:30
Wiki:begin-concurrent
Context
2017-08-11
21:16
Fix a problem allowing a conflicting transaction to be committed in the case where more than one 32KB shared-memory page has been written to since the transaction was started. check-in: 38dd9b50 user: dan tags: begin-concurrent
20:22
Add another PAGERTRACE() macro to show when pages are added to Pager.pAllRead. No impact on production builds. check-in: 11054cf5 user: drh tags: begin-concurrent
19:31
Add a PAGERTRACE() macro to log when frames are written into the WAL file. This is for analysis only and is a no-op for production builds. check-in: 39f39e3d user: drh tags: begin-concurrent
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  5496   5496   
  5497   5497   #ifndef SQLITE_OMIT_CONCURRENT
  5498   5498     /* If this is an CONCURRENT transaction and the page being read was
  5499   5499     ** present in the database file when the transaction was opened,
  5500   5500     ** mark it as read in the pAllRead vector.  */
  5501   5501     pPg = 0;
  5502   5502     if( pPager->pAllRead && pgno<=pPager->dbOrigSize ){
         5503  +    PAGERTRACE(("USING page %d\n", pgno));
  5503   5504       rc = sqlite3BitvecSet(pPager->pAllRead, pgno);
  5504   5505       if( rc!=SQLITE_OK ) goto pager_acquire_err;
  5505   5506     }
  5506   5507   #endif
  5507   5508   
  5508   5509     if( pgno==0 ) return SQLITE_CORRUPT_BKPT;
  5509   5510     pBase = sqlite3PcacheFetch(pPager->pPCache, pgno, 3);