1
0
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:
dan
2010-04-19 18:03:51 +00:00
parent 54934f4689
commit 8d22a17411
14 changed files with 281 additions and 56 deletions

View File

@@ -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 */