mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs.
FossilOrigin-Name: 786e24dc56504d1958db0618e645610f2600a087
This commit is contained in:
11
src/wal.c
11
src/wal.c
@@ -3068,4 +3068,15 @@ int sqlite3WalHeapMemory(Wal *pWal){
|
||||
return (pWal && pWal->exclusiveMode==WAL_HEAPMEMORY_MODE );
|
||||
}
|
||||
|
||||
/*
|
||||
** If the argument is not NULL, it points to a Wal object that holds a
|
||||
** read-lock. This function returns the database page-size if it is known,
|
||||
** or zero if it is not (or if pWal is NULL).
|
||||
*/
|
||||
int sqlite3WalFramesize(Wal *pWal){
|
||||
int nRet = 0;
|
||||
assert( pWal==0 || pWal->readLock>=0 );
|
||||
return (pWal ? pWal->szPage : 0);
|
||||
}
|
||||
|
||||
#endif /* #ifndef SQLITE_OMIT_WAL */
|
||||
|
Reference in New Issue
Block a user