Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1349)

Unified Diff: third_party/sqlite/sqlite-src-3070603/src/pcache1.c

Issue 826543003: [sql] Import reference version of SQLite 3.7.6.3. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: gitignore forgot some files for me. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3070603/src/pcache1.c
diff --git a/third_party/sqlite/src/src/pcache1.c b/third_party/sqlite/sqlite-src-3070603/src/pcache1.c
similarity index 99%
copy from third_party/sqlite/src/src/pcache1.c
copy to third_party/sqlite/sqlite-src-3070603/src/pcache1.c
index e4d0705213e3f1f8a9d664cbd0ee297cf6b1dab7..ad443954bffd0901fcc3e0e93a3b0788d7b997c4 100644
--- a/third_party/sqlite/src/src/pcache1.c
+++ b/third_party/sqlite/sqlite-src-3070603/src/pcache1.c
@@ -549,12 +549,10 @@ static sqlite3_pcache *pcache1Create(int szPage, int bPurgeable){
int sz; /* Bytes of memory required to allocate the new cache */
/*
- ** The separateCache variable is true if each PCache has its own private
+ ** The seperateCache variable is true if each PCache has its own private
** PGroup. In other words, separateCache is true for mode (1) where no
** mutexing is required.
**
- ** * Always use separate caches (mode-1) if SQLITE_SEPARATE_CACHE_POOLS
- **
** * Always use a unified cache (mode-2) if ENABLE_MEMORY_MANAGEMENT
**
** * Always use a unified cache in single-threaded applications
@@ -562,9 +560,7 @@ static sqlite3_pcache *pcache1Create(int szPage, int bPurgeable){
** * Otherwise (if multi-threaded and ENABLE_MEMORY_MANAGEMENT is off)
** use separate caches (mode-1)
*/
-#ifdef SQLITE_SEPARATE_CACHE_POOLS
- const int separateCache = 1;
-#elif defined(SQLITE_ENABLE_MEMORY_MANAGEMENT) || SQLITE_THREADSAFE==0
+#if defined(SQLITE_ENABLE_MEMORY_MANAGEMENT) || SQLITE_THREADSAFE==0
const int separateCache = 0;
#else
int separateCache = sqlite3GlobalConfig.bCoreMutex>0;
« no previous file with comments | « third_party/sqlite/sqlite-src-3070603/src/pcache.c ('k') | third_party/sqlite/sqlite-src-3070603/src/pragma.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698