mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Rename the sqlite3PagerAcquire() function to sqlite3PagerGet(). The former
macro called sqlite3PagerGet() has been removed. FossilOrigin-Name: 708253be34084b89987efe955c34557516171a3a
This commit is contained in:
14
src/pager.c
14
src/pager.c
@@ -2333,7 +2333,7 @@ static int pager_playback_one_page(
|
||||
assert( isSavepnt );
|
||||
assert( (pPager->doNotSpill & SPILLFLAG_ROLLBACK)==0 );
|
||||
pPager->doNotSpill |= SPILLFLAG_ROLLBACK;
|
||||
rc = sqlite3PagerAcquire(pPager, pgno, &pPg, 1);
|
||||
rc = sqlite3PagerGet(pPager, pgno, &pPg, 1);
|
||||
assert( (pPager->doNotSpill & SPILLFLAG_ROLLBACK)!=0 );
|
||||
pPager->doNotSpill &= ~SPILLFLAG_ROLLBACK;
|
||||
if( rc!=SQLITE_OK ) return rc;
|
||||
@@ -4969,7 +4969,7 @@ static int hasHotJournal(Pager *pPager, int *pExists){
|
||||
|
||||
/*
|
||||
** This function is called to obtain a shared lock on the database file.
|
||||
** It is illegal to call sqlite3PagerAcquire() until after this function
|
||||
** It is illegal to call sqlite3PagerGet() until after this function
|
||||
** has been successfully called. If a shared-lock is already held when
|
||||
** this function is called, it is a no-op.
|
||||
**
|
||||
@@ -5272,7 +5272,7 @@ static void pagerUnlockIfUnused(Pager *pPager){
|
||||
** Since Lookup() never goes to disk, it never has to deal with locks
|
||||
** or journal files.
|
||||
*/
|
||||
int sqlite3PagerAcquire(
|
||||
int sqlite3PagerGet(
|
||||
Pager *pPager, /* The pager open on the database file */
|
||||
Pgno pgno, /* Page number to fetch */
|
||||
DbPage **ppPage, /* Write a pointer to the page here */
|
||||
@@ -5858,7 +5858,7 @@ static SQLITE_NOINLINE int pagerWriteLargeSector(PgHdr *pPg){
|
||||
PgHdr *pPage;
|
||||
if( pg==pPg->pgno || !sqlite3BitvecTest(pPager->pInJournal, pg) ){
|
||||
if( pg!=PAGER_MJ_PGNO(pPager) ){
|
||||
rc = sqlite3PagerGet(pPager, pg, &pPage);
|
||||
rc = sqlite3PagerGet(pPager, pg, &pPage, 0);
|
||||
if( rc==SQLITE_OK ){
|
||||
rc = pager_write(pPage);
|
||||
if( pPage->flags&PGHDR_NEED_SYNC ){
|
||||
@@ -6018,7 +6018,7 @@ static int pager_incr_changecounter(Pager *pPager, int isDirectMode){
|
||||
assert( !pPager->tempFile && isOpen(pPager->fd) );
|
||||
|
||||
/* Open page 1 of the file for writing. */
|
||||
rc = sqlite3PagerGet(pPager, 1, &pPgHdr);
|
||||
rc = sqlite3PagerGet(pPager, 1, &pPgHdr, 0);
|
||||
assert( pPgHdr==0 || rc==SQLITE_OK );
|
||||
|
||||
/* If page one was fetched successfully, and this function is not
|
||||
@@ -6173,7 +6173,7 @@ int sqlite3PagerCommitPhaseOne(
|
||||
if( pList==0 ){
|
||||
/* Must have at least one page for the WAL commit flag.
|
||||
** Ticket [2d1a5c67dfc2363e44f29d9bbd57f] 2011-05-18 */
|
||||
rc = sqlite3PagerGet(pPager, 1, &pPageOne);
|
||||
rc = sqlite3PagerGet(pPager, 1, &pPageOne, 0);
|
||||
pList = pPageOne;
|
||||
pList->pDirty = 0;
|
||||
}
|
||||
@@ -6878,7 +6878,7 @@ int sqlite3PagerMovepage(Pager *pPager, DbPage *pPg, Pgno pgno, int isCommit){
|
||||
** the journal file twice, but that is not a problem.
|
||||
*/
|
||||
PgHdr *pPgHdr;
|
||||
rc = sqlite3PagerGet(pPager, needSyncPgno, &pPgHdr);
|
||||
rc = sqlite3PagerGet(pPager, needSyncPgno, &pPgHdr, 0);
|
||||
if( rc!=SQLITE_OK ){
|
||||
if( needSyncPgno<=pPager->dbOrigSize ){
|
||||
assert( pPager->pTmpSpace!=0 );
|
||||
|
Reference in New Issue
Block a user