mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Fix the experimental sqlite3_wal_info() API so that it works with wal2 mode.
FossilOrigin-Name: 079daedbe440e712dc944aeef831ef6531d44096da406d52ce0d85a8a49618c5
This commit is contained in:
@@ -4967,8 +4967,8 @@ sqlite3_file *sqlite3WalFile(Wal *pWal){
|
||||
int sqlite3WalInfo(Wal *pWal, u32 *pnPrior, u32 *pnFrame){
|
||||
int rc = SQLITE_OK;
|
||||
if( pWal ){
|
||||
*pnFrame = pWal->hdr.mxFrame;
|
||||
*pnPrior = pWal->nPriorFrame;
|
||||
*pnFrame = walidxGetMxFrame(&pWal->hdr, walidxGetFile(&pWal->hdr));
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user