mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Rewind the checkpoint journal after each statement to avoid allowing
the file to become too large. (CVS 744) FossilOrigin-Name: f4288520dfd1587446e50fa7ef23f75f6f63a7cf
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.52 2002/09/05 16:08:27 drh Exp $
|
||||
** @(#) $Id: pager.c,v 1.53 2002/09/05 19:10:33 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "pager.h"
|
||||
@@ -1517,6 +1517,7 @@ ckpt_begin_failed:
|
||||
int sqlitepager_ckpt_commit(Pager *pPager){
|
||||
if( pPager->ckptInUse ){
|
||||
PgHdr *pPg;
|
||||
sqliteOsSeek(&pPager->cpfd, 0);
|
||||
sqliteOsTruncate(&pPager->cpfd, 0);
|
||||
pPager->ckptInUse = 0;
|
||||
sqliteFree( pPager->aInCkpt );
|
||||
|
Reference in New Issue
Block a user