1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add the sqlite3_wal_checkpoint() and sqlite3_wal_autocheckpoint() APIs.

FossilOrigin-Name: 9803196dec85e3aa4105cc477e9cfe98d370e486
This commit is contained in:
dan
2010-05-03 08:04:49 +00:00
parent bee6f4ebe2
commit 586b9c8a94
9 changed files with 136 additions and 59 deletions

View File

@@ -5193,12 +5193,7 @@ case OP_AggFinal: {
** WAL mode.
*/
case OP_Checkpoint: {
Btree *pBt; /* Btree to checkpoint */
assert( pOp->p1>=0 && pOp->p1<db->nDb );
assert( (p->btreeMask & (1<<pOp->p1))!=0 );
pBt = db->aDb[pOp->p1].pBt;
rc = sqlite3PagerCheckpoint(sqlite3BtreePager(pBt));
rc = sqlite3Checkpoint(db, pOp->p1);
break;
};
#endif