accommodate new void return from sqlite3PagerPagecount

This commit is contained in:
Stephen Lombardo 2010-08-28 08:44:25 -04:00
parent 8a76b73193
commit ebecc71a89

View File

@ -545,7 +545,7 @@ int sqlite3_rekey(sqlite3 *db, const void *pKey, int nKey) {
** note: don't deallocate rekey since it may be used in a subsequent iteration
*/
rc = sqlite3BtreeBeginTrans(pDb->pBt, 1); /* begin write transaction */
rc = sqlite3PagerPagecount(pPager, &page_count);
sqlite3PagerPagecount(pPager, &page_count);
for(pgno = 1; rc == SQLITE_OK && pgno <= page_count; pgno++) { /* pgno's start at 1 see pager.c:pagerAcquire */
if(!sqlite3pager_is_mj_pgno(pPager, pgno)) { /* skip this page (see pager.c:pagerAcquire for reasoning) */
rc = sqlite3PagerGet(pPager, pgno, &page);