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

Side by Side Diff: third_party/sqlite/separate_cache_pool.patch

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « third_party/sqlite/recover.patch ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git src/pcache1.c src/pcache1.c
2 index ad44395..e4d0705 100644
3 --- src/pcache1.c
4 +++ src/pcache1.c
5 @@ -549,10 +549,12 @@ static sqlite3_pcache *pcache1Create(int szPage, int bPurg eable){
6 int sz; /* Bytes of memory required to allocate the new cache * /
7
8 /*
9 - ** The seperateCache variable is true if each PCache has its own private
10 + ** The separateCache variable is true if each PCache has its own private
11 ** PGroup. In other words, separateCache is true for mode (1) where no
12 ** mutexing is required.
13 **
14 + ** * Always use separate caches (mode-1) if SQLITE_SEPARATE_CACHE_POOLS
15 + **
16 ** * Always use a unified cache (mode-2) if ENABLE_MEMORY_MANAGEMENT
17 **
18 ** * Always use a unified cache in single-threaded applications
19 @@ -560,7 +562,9 @@ static sqlite3_pcache *pcache1Create(int szPage, int bPurgea ble){
20 ** * Otherwise (if multi-threaded and ENABLE_MEMORY_MANAGEMENT is off)
21 ** use separate caches (mode-1)
22 */
23 -#if defined(SQLITE_ENABLE_MEMORY_MANAGEMENT) || SQLITE_THREADSAFE==0
24 +#ifdef SQLITE_SEPARATE_CACHE_POOLS
25 + const int separateCache = 1;
26 +#elif defined(SQLITE_ENABLE_MEMORY_MANAGEMENT) || SQLITE_THREADSAFE==0
27 const int separateCache = 0;
28 #else
29 int separateCache = sqlite3GlobalConfig.bCoreMutex>0;
OLDNEW
« no previous file with comments | « third_party/sqlite/recover.patch ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698