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

Allow the rollback journal to be empty except for its header.

Ticket #212. (CVS 809)

FossilOrigin-Name: 1ba41bc2afab18cc295d9a45845296b46bfa57e5
This commit is contained in:
drh
2003-01-03 02:04:27 +00:00
parent 8c1238aebd
commit 2c79995565
3 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
** @(#) $Id: pager.c,v 1.63 2003/01/02 14:43:57 drh Exp $
** @(#) $Id: pager.c,v 1.64 2003/01/03 02:04:27 drh Exp $
*/
#include "os.h" /* Must be first to enable large file support */
#include "sqliteInt.h"
@@ -444,7 +444,7 @@ static int pager_playback(Pager *pPager){
if( rc!=SQLITE_OK ){
goto end_playback;
}
if( nRec <= sizeof(aMagic)+sizeof(Pgno) ){
if( nRec < sizeof(aMagic)+sizeof(Pgno) ){
goto end_playback;
}
nRec = (nRec - (sizeof(aMagic)+sizeof(Pgno))) / sizeof(PageRecord);