Skip to content

Commit

Permalink
Make use of xFetch, if it is available when doing a VACUUM or a backup.
Browse files Browse the repository at this point in the history
  • Loading branch information
D. Richard Hipp committed Apr 3, 2013
1 parent 1349126 commit f10b488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ int sqlite3_backup_step(sqlite3_backup *p, int nPage){
const Pgno iSrcPg = p->iNext; /* Source page number */
if( iSrcPg!=PENDING_BYTE_PAGE(p->pSrc->pBt) ){
DbPage *pSrcPg; /* Source page object */
rc = sqlite3PagerGet(pSrcPager, iSrcPg, &pSrcPg);
rc = sqlite3PagerAcquire(pSrcPager, iSrcPg, &pSrcPg,
PAGER_ACQUIRE_READONLY);
if( rc==SQLITE_OK ){
rc = backupOnePage(p, iSrcPg, sqlite3PagerGetData(pSrcPg), 0);
sqlite3PagerUnref(pSrcPg);
Expand Down

0 comments on commit f10b488

Please sign in to comment.