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

Unified Diff: third_party/sqlite/sqlite-src-3080704/src/mutex.c

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. 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-3080704/src/mutex.c
diff --git a/third_party/sqlite/sqlite-src-3070603/src/mutex.c b/third_party/sqlite/sqlite-src-3080704/src/mutex.c
similarity index 97%
copy from third_party/sqlite/sqlite-src-3070603/src/mutex.c
copy to third_party/sqlite/sqlite-src-3080704/src/mutex.c
index 869a4aeb08d262995bbffcc11b4e6debb8e3088f..bad5a7c113c3f1065afaf1c3bf8d252cc073e389 100644
--- a/third_party/sqlite/sqlite-src-3070603/src/mutex.c
+++ b/third_party/sqlite/sqlite-src-3080704/src/mutex.c
@@ -81,7 +81,7 @@ int sqlite3MutexEnd(void){
*/
sqlite3_mutex *sqlite3_mutex_alloc(int id){
#ifndef SQLITE_OMIT_AUTOINIT
- if( sqlite3_initialize() ) return 0;
+ if( id<=SQLITE_MUTEX_RECURSIVE && sqlite3_initialize() ) return 0;
#endif
return sqlite3GlobalConfig.mutex.xMutexAlloc(id);
}
@@ -150,4 +150,4 @@ int sqlite3_mutex_notheld(sqlite3_mutex *p){
}
#endif
-#endif /* SQLITE_MUTEX_OMIT */
+#endif /* !defined(SQLITE_MUTEX_OMIT) */
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/src/mutex.h ('k') | third_party/sqlite/sqlite-src-3080704/src/mutex_noop.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698