1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Give file scope to non-API routines in pcache. Ticket #3392. (CVS 5727)

FossilOrigin-Name: 6521f98ac3a5cd2d959a9672cd07b1d25b82d559
This commit is contained in:
drh
2008-09-21 15:14:04 +00:00
parent e972e031d1
commit 0db8ac43b5
3 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
C Speed\sup\sreleaseMemArray()\sa\sbit\sby\shandling\sthe\smost\scommon\stypes\sof\smemory\scells\sinline.\s(CVS\s5726) C Give\sfile\sscope\sto\snon-API\sroutines\sin\spcache.\s\sTicket\s#3392.\s(CVS\s5727)
D 2008-09-19T18:32:27 D 2008-09-21T15:14:04
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in d15a7ebfe5e057a72a49805ffb302dbb601c8329 F Makefile.in d15a7ebfe5e057a72a49805ffb302dbb601c8329
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -140,7 +140,7 @@ F src/os_win.c 3209dc0ed734291764393ea8d534ba0d8696a540
F src/pager.c 131746ea47383daf89fce08e0cb09b84cffa39eb F src/pager.c 131746ea47383daf89fce08e0cb09b84cffa39eb
F src/pager.h 1ef5a3f8e0b4c8b30f19c8e01d4fca2db9bb5797 F src/pager.h 1ef5a3f8e0b4c8b30f19c8e01d4fca2db9bb5797
F src/parse.y d0f76d2cb8d6883d5600dc20beb961a6022b94b8 F src/parse.y d0f76d2cb8d6883d5600dc20beb961a6022b94b8
F src/pcache.c e025e5380d75ffc25ef069fee8d128b595513ece F src/pcache.c e2a4dd0ae4118c95499b97806ea26ece8d12127a
F src/pcache.h 0b6871e820159629915e8688b5c67a81a203773f F src/pcache.h 0b6871e820159629915e8688b5c67a81a203773f
F src/pragma.c e633b6b7dabc110e2abfed4e35ba34a4039cb65c F src/pragma.c e633b6b7dabc110e2abfed4e35ba34a4039cb65c
F src/prepare.c c7e00ed1b0bdcf699b1aad651247d4dc3d281b0b F src/prepare.c c7e00ed1b0bdcf699b1aad651247d4dc3d281b0b
@@ -637,7 +637,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1 F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
P 0c8b74e668b7462c5439c04993d1d7cd74210075 P ce07508550da858beb0bc0763c65e6d556bb0843
R 0c4f9fcda4509cdf163057aa76c78a60 R eb677157932c5d2c4609f1e846031add
U danielk1977 U drh
Z e05882893abbd0418dd9ff166dc58eca Z c75262320174dd220d3d87cbeb32ad45

View File

@@ -1 +1 @@
ce07508550da858beb0bc0763c65e6d556bb0843 6521f98ac3a5cd2d959a9672cd07b1d25b82d559

View File

@@ -11,7 +11,7 @@
************************************************************************* *************************************************************************
** This file implements that page cache. ** This file implements that page cache.
** **
** @(#) $Id: pcache.c,v 1.30 2008/09/18 17:34:44 danielk1977 Exp $ ** @(#) $Id: pcache.c,v 1.31 2008/09/21 15:14:04 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
@@ -406,7 +406,7 @@ void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){
** and use an element from it first if available. If nothing is available ** and use an element from it first if available. If nothing is available
** in the page cache memory pool, go to the general purpose memory allocator. ** in the page cache memory pool, go to the general purpose memory allocator.
*/ */
void *pcacheMalloc(int sz, PCache *pCache){ static void *pcacheMalloc(int sz, PCache *pCache){
assert( sqlite3_mutex_held(pcache_g.mutex) ); assert( sqlite3_mutex_held(pcache_g.mutex) );
if( sz<=pcache_g.szSlot && pcache_g.pFree ){ if( sz<=pcache_g.szSlot && pcache_g.pFree ){
PgFreeslot *p = pcache_g.pFree; PgFreeslot *p = pcache_g.pFree;
@@ -445,7 +445,7 @@ void *sqlite3PageMalloc(int sz){
/* /*
** Release a pager memory allocation ** Release a pager memory allocation
*/ */
void pcacheFree(void *p){ static void pcacheFree(void *p){
assert( sqlite3_mutex_held(pcache_g.mutex) ); assert( sqlite3_mutex_held(pcache_g.mutex) );
if( p==0 ) return; if( p==0 ) return;
if( p>=pcache_g.pStart && p<pcache_g.pEnd ){ if( p>=pcache_g.pStart && p<pcache_g.pEnd ){
@@ -817,7 +817,7 @@ void sqlite3PcacheMakeDirty(PgHdr *p){
p->flags |= PGHDR_DIRTY; p->flags |= PGHDR_DIRTY;
} }
void pcacheMakeClean(PgHdr *p){ static void pcacheMakeClean(PgHdr *p){
PCache *pCache = p->pCache; PCache *pCache = p->pCache;
assert( p->apSave[0]==0 && p->apSave[1]==0 ); assert( p->apSave[0]==0 && p->apSave[1]==0 );
assert( p->flags & PGHDR_DIRTY ); assert( p->flags & PGHDR_DIRTY );
@@ -891,7 +891,7 @@ void sqlite3PcacheMove(PgHdr *p, Pgno newPgno){
/* /*
** Remove all content from a page cache ** Remove all content from a page cache
*/ */
void pcacheClear(PCache *pCache){ static void pcacheClear(PCache *pCache){
PgHdr *p, *pNext; PgHdr *p, *pNext;
assert( sqlite3_mutex_held(pcache_g.mutex) ); assert( sqlite3_mutex_held(pcache_g.mutex) );
for(p=pCache->pClean; p; p=pNext){ for(p=pCache->pClean; p; p=pNext){