Fossil SCM

If fossil is configured with --disable-internal-sqlite and the system SQLite is SQLite 3.8.7 (not compiled with SQLITE_THREADSAFE=0), allow fossil to use the faster sorting using multiple threads.

jan.nijtmans 2014-09-03 08:09 trunk
Commit d4044fe220f66a9e26c710bb48feeff8fb278b50
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -576,11 +576,11 @@
576576
int rc;
577577
if( sqlite3_libversion_number()<3008003 ){
578578
fossil_fatal("Unsuitable SQLite version %s, must be at least 3.8.3",
579579
sqlite3_libversion());
580580
}
581
- sqlite3_config(SQLITE_CONFIG_SINGLETHREAD);
581
+ sqlite3_config(SQLITE_CONFIG_MULTITHREAD);
582582
sqlite3_config(SQLITE_CONFIG_LOG, fossil_sqlite_log, 0);
583583
memset(&g, 0, sizeof(g));
584584
g.now = time(0);
585585
g.httpHeader = empty_blob;
586586
#ifdef FOSSIL_ENABLE_JSON
587587
--- src/main.c
+++ src/main.c
@@ -576,11 +576,11 @@
576 int rc;
577 if( sqlite3_libversion_number()<3008003 ){
578 fossil_fatal("Unsuitable SQLite version %s, must be at least 3.8.3",
579 sqlite3_libversion());
580 }
581 sqlite3_config(SQLITE_CONFIG_SINGLETHREAD);
582 sqlite3_config(SQLITE_CONFIG_LOG, fossil_sqlite_log, 0);
583 memset(&g, 0, sizeof(g));
584 g.now = time(0);
585 g.httpHeader = empty_blob;
586 #ifdef FOSSIL_ENABLE_JSON
587
--- src/main.c
+++ src/main.c
@@ -576,11 +576,11 @@
576 int rc;
577 if( sqlite3_libversion_number()<3008003 ){
578 fossil_fatal("Unsuitable SQLite version %s, must be at least 3.8.3",
579 sqlite3_libversion());
580 }
581 sqlite3_config(SQLITE_CONFIG_MULTITHREAD);
582 sqlite3_config(SQLITE_CONFIG_LOG, fossil_sqlite_log, 0);
583 memset(&g, 0, sizeof(g));
584 g.now = time(0);
585 g.httpHeader = empty_blob;
586 #ifdef FOSSIL_ENABLE_JSON
587

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button