mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Increase test coverage of new savepoint code. (CVS 6040)
FossilOrigin-Name: d915718d0b346982d686d131a159b67e28fc02a8
This commit is contained in:
11
src/pager.c
11
src/pager.c
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.516 2008/12/18 15:45:07 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.517 2008/12/18 18:31:39 danielk1977 Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -922,6 +922,11 @@ static void pager_reset(Pager *pPager){
|
||||
sqlite3PcacheClear(pPager->pPCache);
|
||||
}
|
||||
|
||||
/*
|
||||
** Free all structures in the Pager.aSavepoint[] array and set both
|
||||
** Pager.aSavepoint and Pager.nSavepoint to zero. Close the sub-journal
|
||||
** if it is open and the pager is not in exclusive mode.
|
||||
*/
|
||||
static void releaseAllSavepoint(Pager *pPager){
|
||||
int ii;
|
||||
for(ii=0; ii<pPager->nSavepoint; ii++){
|
||||
@@ -935,6 +940,10 @@ static void releaseAllSavepoint(Pager *pPager){
|
||||
pPager->nSavepoint = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
** Set the bit number pgno in the PagerSavepoint.pInSavepoint bitvecs of
|
||||
** all open savepoints.
|
||||
*/
|
||||
static int addToSavepointBitvecs(Pager *pPager, Pgno pgno){
|
||||
int ii;
|
||||
for(ii=0; ii<pPager->nSavepoint; ii++){
|
||||
|
Reference in New Issue
Block a user