mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Incremental checkin on pager state refactoring.
FossilOrigin-Name: 0a636798bdb6961a47327091715b254f79add823
This commit is contained in:
10
src/wal.c
10
src/wal.c
@@ -2166,11 +2166,13 @@ int sqlite3WalRead(
|
||||
|
||||
|
||||
/*
|
||||
** Set *pPgno to the size of the database file (or zero, if unknown).
|
||||
** Return the size of the database in pages (or zero, if unknown).
|
||||
*/
|
||||
void sqlite3WalDbsize(Wal *pWal, Pgno *pPgno){
|
||||
assert( pWal->readLock>=0 || pWal->lockError );
|
||||
*pPgno = pWal->hdr.nPage;
|
||||
Pgno sqlite3WalDbsize(Wal *pWal){
|
||||
if( pWal && pWal->readLock>=0 ){
|
||||
return pWal->hdr.nPage;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user