/ Check-in [b11b2e1f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a line in pcache1.c where a global data structure is accessed without using the GLOBAL() macro. This causes a subtle malfunction on test systems that use SQLITE_OMIT_WSD.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b11b2e1f8ccadf78bebe2278f05a8e3d3e543328
User & Date: dan 2011-06-09 17:53:43
Context
2011-06-10
16:33
Fix minor problems with foreign key constraints where the parent table is the same as the child table. check-in: 442d8d8b user: dan tags: trunk
2011-06-09
17:53
Fix a line in pcache1.c where a global data structure is accessed without using the GLOBAL() macro. This causes a subtle malfunction on test systems that use SQLITE_OMIT_WSD. check-in: b11b2e1f user: dan tags: trunk
2011-06-07
18:31
Fix a comment type on the description of the Schema object. check-in: 095cd9a6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pcache1.c.

   570    570     pCache = (PCache1 *)sqlite3_malloc(sz);
   571    571     if( pCache ){
   572    572       memset(pCache, 0, sz);
   573    573       if( separateCache ){
   574    574         pGroup = (PGroup*)&pCache[1];
   575    575         pGroup->mxPinned = 10;
   576    576       }else{
   577         -      pGroup = &pcache1_g.grp;
          577  +      pGroup = &pcache1.grp;
   578    578       }
   579    579       pCache->pGroup = pGroup;
   580    580       pCache->szPage = szPage;
   581    581       pCache->bPurgeable = (bPurgeable ? 1 : 0);
   582    582       if( bPurgeable ){
   583    583         pCache->nMin = 10;
   584    584         pcache1EnterMutex(pGroup);