mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add the sqlite3_log_hook() interface for scheduling checkpoints.
FossilOrigin-Name: 9bda601455705475075e33bfa85687bce34b15ff
This commit is contained in:
@@ -2686,7 +2686,7 @@ int sqlite3PagerPagecount(Pager *pPager, int *pnPage){
|
||||
i64 n = 0; /* File size in bytes returned by OsFileSize() */
|
||||
|
||||
if( pagerUseLog(pPager) ){
|
||||
sqlite3LogMaxpgno(pPager->pLog, &nPage);
|
||||
sqlite3LogDbsize(pPager->pLog, &nPage);
|
||||
}
|
||||
|
||||
if( nPage==0 ){
|
||||
@@ -5709,4 +5709,8 @@ int sqlite3PagerCheckpoint(Pager *pPager){
|
||||
return rc;
|
||||
}
|
||||
|
||||
int sqlite3PagerLogCallback(Pager *pPager){
|
||||
return sqlite3LogCallback(pPager->pLog);
|
||||
}
|
||||
|
||||
#endif /* SQLITE_OMIT_DISKIO */
|
||||
|
Reference in New Issue
Block a user