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:
drh 2002-09-05 19:10:33 +00:00
parent 4e371ee41c
commit 96ddd6db58
3 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
C Fix\sfor\sticket\s#146:\sCorrectly\shandle\sreads\sof\sunused\sdisk\sblocks\sat\sthe\nend\sof\sthe\sfile.\s(CVS\s743)
D 2002-09-05T16:08:27
C Rewind\sthe\scheckpoint\sjournal\safter\seach\sstatement\sto\savoid\sallowing\nthe\sfile\sto\sbecome\stoo\slarge.\s(CVS\s744)
D 2002-09-05T19:10:33
F Makefile.in 420fada882179cb72ffd07313f3fd693f9f06640
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@ -32,7 +32,7 @@ F src/main.c 367c0d2c72457dacddea28b5ba6634ffeaa9aa67
F src/md5.c fe4f9c9c6f71dfc26af8da63e4d04489b1430565
F src/os.c 091a89297bf80927cde146cd1dbf89c908864f3a
F src/os.h 3009379b06941e7796a9812d1b6cbc59b26248c8
F src/pager.c b5365348606252dee8d831912d916218df8f8720
F src/pager.c 592e5931fdc65e952a6c3e152bc822580856532a
F src/pager.h 6991c9c2dc5e4c7f2df4d4ba47d1c6458f763a32
F src/parse.y 818b03a73f6b3b8b284b515c5b1d9998d4663dc3
F src/printf.c 5c50fc1da75c8f5bf432b1ad17d91d6653acd167
@ -151,7 +151,7 @@ F www/speed.tcl a20a792738475b68756ea7a19321600f23d1d803
F www/sqlite.tcl ae3dcfb077e53833b59d4fcc94d8a12c50a44098
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
P 7f8fd5c75d614f81ef87f0fc952c341cbc5076d0
R e7c2b185d8c4a6f19fc472c4852f3827
P f5c2654768a6201fc554b59f1b2f56bcce738bc4
R ba6b5d116c23b25933186a08cf2bfa2c
U drh
Z fa53bc156cff8bbf22e6de1d4e9ed324
Z c676a7940e61f82095f5a594ad34abda

View File

@ -1 +1 @@
f5c2654768a6201fc554b59f1b2f56bcce738bc4
f4288520dfd1587446e50fa7ef23f75f6f63a7cf

View File

@ -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 );