1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix some minor formatting and code organization issues.

FossilOrigin-Name: eab8706dc47aa0a44caf73619de858397c3e0b4e
This commit is contained in:
dan
2014-10-24 16:40:49 +00:00
parent cc8490d2cd
commit e6593d8e8c
5 changed files with 28 additions and 23 deletions

View File

@@ -6845,16 +6845,23 @@ int sqlite3PagerMovepage(Pager *pPager, DbPage *pPg, Pgno pgno, int isCommit){
return SQLITE_OK;
}
#endif
void sqlite3PagerRekey(DbPage *pPage, Pgno iNew){
/*
** The page handle passed as the first argument refers to a dirty page
** with a page number other than iNew. This function changes the page's
** page number to iNew and sets the value of the PgHdr.flags field to
** the value passed as the third parameter.
*/
void sqlite3PagerRekey(DbPage *pPage, Pgno iNew, u16 flags){
PgHdr *pPg = (PgHdr*)pPage;
assert( pPg->flags & PGHDR_DIRTY );
assert( (flags & PGHDR_DIRTY) && (pPg->flags & PGHDR_DIRTY) );
assert( !subjRequiresPage(pPg) );
assert( pPg->pgno!=iNew );
pPg->flags = flags;
sqlite3PcacheMove(pPg, iNew);
}
#endif
/*
** Return a pointer to the data for the specified page.
*/