1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Run the tests in shared.test a second time using an autovacuum database. (CVS 2957)

FossilOrigin-Name: 9927522923558348a846e033b92100c0ed4ee556
This commit is contained in:
danielk1977
2006-01-16 12:46:41 +00:00
parent efaaf57974
commit a96a7103b2
6 changed files with 103 additions and 79 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.238 2006/01/16 11:29:19 danielk1977 Exp $
** @(#) $Id: pager.c,v 1.239 2006/01/16 12:46:41 danielk1977 Exp $
*/
#ifndef SQLITE_OMIT_DISKIO
#include "sqliteInt.h"
@@ -457,7 +457,13 @@ static u32 retrieve32bits(PgHdr *p, int offset){
/*
** This function should be called when an error occurs within the pager
** code to set Pager.errCode.
** code. The first argument is a pointer to the pager structure, the
** second the error-code about to be returned by a pager API function.
** The value returned is a copy of the second argument to this function.
**
** If the second argument is SQLITE_IOERR, SQLITE_CORRUPT or SQLITE_PROTOCOL,
** the error becomes persistent. All subsequent API calls on this Pager
** will immediately return the same error code.
*/
static int pager_error(Pager *pPager, int rc){
assert( pPager->errCode==SQLITE_FULL || pPager->errCode==SQLITE_OK );