Comment enhancements and typo fixes in pcache1.c.

FossilOrigin-Name: c2dc39c0c4673a39f5fe6e643acb3bcf4ca22265
This commit is contained in:
drh 2010-08-24 18:06:35 +00:00
parent a235d0ca63
commit 9d13f116af
3 changed files with 26 additions and 11 deletions

View File

@ -1,5 +1,8 @@
C Fixes\sto\sallow\sfts3\stables\sto\sbe\srenamed\smid-transaction.
D 2010-08-24T16:59:48
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
C Comment\senhancements\sand\stypo\sfixes\sin\spcache1.c.
D 2010-08-24T18:06:36
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in 543f91f24cd7fee774ecc0a61c19704c0c3e78fd
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@ -161,7 +164,7 @@ F src/pager.h ef8c8f71ab022cc2fff768a1175dd32355be9dcd
F src/parse.y 12b7ebd61ea54f0e1b1083ff69cc2c8ce9353d58
F src/pcache.c 1e9aa2dbc0845b52e1b51cc39753b6d1e041cb07
F src/pcache.h c683390d50f856d4cd8e24342ae62027d1bb6050
F src/pcache1.c e921e8a1d52c93abde63cb6dad1fa39770410c52
F src/pcache1.c 367d88f7924fee4fd3d23161c4c7552df7139a1f
F src/pragma.c 8b24ce00a93de345b6c3bd1e1e2cfba9f63d2325
F src/prepare.c ce4c35a2b1d5fe916e4a46b70d24a6e997d7c4c6
F src/printf.c 8ae5082dd38a1b5456030c3755ec3a392cd51506
@ -846,7 +849,14 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
P 5c1c694ee1b3b71e20089412f6cba1847dc7f958
R 25f3b83483bf6c0fefff05a4b75ff439
U dan
Z 19f58c47941c660f7043731f7e66713a
P d1c875320a045c3938c765ceb543dfba1a0ecf0b
R f17497bced9cd061242a13d138b46e31
U drh
Z 659e89ce9ae8e1b772fd735044dd157e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFMdAowoxKgR168RlERArZbAJwPTXDcDgv/v1FZTFSgy4Z4YeCjjACcDCfb
wftgFT7Nb+2D6Xg1fxM8wo0=
=uzyV
-----END PGP SIGNATURE-----

View File

@ -1 +1 @@
d1c875320a045c3938c765ceb543dfba1a0ecf0b
c2dc39c0c4673a39f5fe6e643acb3bcf4ca22265

View File

@ -23,8 +23,13 @@ typedef struct PCache1 PCache1;
typedef struct PgHdr1 PgHdr1;
typedef struct PgFreeslot PgFreeslot;
/* Pointers to structures of this type are cast and returned as
** opaque sqlite3_pcache* handles
/* Each page cache is an instance of the following object. Every
** open database file (including each in-memory database and each
** temporary or transient database) has a single page cache which
** is an instance of this object.
**
** Pointers to structures of this type are cast and returned as
** opaque sqlite3_pcache* handles.
*/
struct PCache1 {
/* Cache configuration parameters. Page size (szPage) and the purgeable
@ -202,7 +207,7 @@ static void pcache1Free(void *p){
#ifdef SQLITE_ENABLE_MEMORY_MANAGEMENT
/*
** Return the size of a pache allocation
** Return the size of a pcache allocation
*/
static int pcache1MemSize(void *p){
assert( sqlite3_mutex_held(pcache1.mutex) );