diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-08-27 15:16:33 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-08-27 15:16:33 +0000 |
commit | a1fa00d95f52e85fad2d5ba633a10d1ba8930f09 (patch) | |
tree | bec7fad1d68c5b3c5ba277f7c7462c1c5af17558 /src/pcache.c | |
parent | e5767a33e5e043cf9be87f93f449c7e4600b3f31 (diff) | |
download | sqlite-a1fa00d95f52e85fad2d5ba633a10d1ba8930f09.tar.gz sqlite-a1fa00d95f52e85fad2d5ba633a10d1ba8930f09.zip |
Use a bitvec object to store the set of pages with the 'always-rollback' property for a transaction. (CVS 5622)
FossilOrigin-Name: 9e9325997e11a0368721ed7860f4c37de3502a9b
Diffstat (limited to 'src/pcache.c')
-rw-r--r-- | src/pcache.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/pcache.c b/src/pcache.c index db2ec83b0..07300ade8 100644 --- a/src/pcache.c +++ b/src/pcache.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file implements that page cache. ** -** @(#) $Id: pcache.c,v 1.16 2008/08/27 09:44:40 danielk1977 Exp $ +** @(#) $Id: pcache.c,v 1.17 2008/08/27 15:16:34 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -497,15 +497,6 @@ static PgHdr *pcacheRecyclePage(){ pcacheRemoveFromLruList(p); pcacheRemoveFromHash(p); pcacheRemoveFromList(&p->pCache->pClean, p); - - /* If the always-rollback flag is set on the page being recycled, set - ** the always-rollback flag on the corresponding pager. TODO: This is - ** a thread-safety problem. - */ - if( p->flags&PGHDR_ALWAYS_ROLLBACK ){ - assert(p->pPager); - sqlite3PagerAlwaysRollback(p->pPager); - } } return p; |