mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Remove an obsolete layer of redirection in pager.c. (CVS 5723)
FossilOrigin-Name: 75deaa442f3a363c4ea5b6f0e510306feeaa8915
This commit is contained in:
16
src/pager.c
16
src/pager.c
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.492 2008/09/18 17:34:44 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.493 2008/09/19 09:14:44 danielk1977 Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -2793,7 +2793,7 @@ static void pagerDropPage(DbPage *pPg){
|
||||
** called again with noContent==0, that means that the content is needed
|
||||
** and the disk read should occur at that point.
|
||||
*/
|
||||
static int pagerAcquire(
|
||||
int sqlite3PagerAcquire(
|
||||
Pager *pPager, /* The pager open on the database file */
|
||||
Pgno pgno, /* Page number to fetch */
|
||||
DbPage **ppPage, /* Write a pointer to the page here */
|
||||
@@ -2890,18 +2890,6 @@ static int pagerAcquire(
|
||||
return SQLITE_OK;
|
||||
}
|
||||
|
||||
int sqlite3PagerAcquire(
|
||||
Pager *pPager, /* The pager open on the database file */
|
||||
Pgno pgno, /* Page number to fetch */
|
||||
DbPage **ppPage, /* Write a pointer to the page here */
|
||||
int noContent /* Do not bother reading content from disk if true */
|
||||
){
|
||||
int rc;
|
||||
rc = pagerAcquire(pPager, pgno, ppPage, noContent);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Acquire a page if it is already in the in-memory cache. Do
|
||||
** not read the page from disk. Return a pointer to the page,
|
||||
|
Reference in New Issue
Block a user