| | @@ -741,11 +741,13 @@ |
| 741 | 741 | sqlite3_create_function( |
| 742 | 742 | db, "if_selected", 3, SQLITE_UTF8, 0, file_is_selected,0,0 |
| 743 | 743 | ); |
| 744 | 744 | if( g.fSqlTrace ) sqlite3_trace(db, db_sql_trace, 0); |
| 745 | 745 | re_add_sql_func(db); |
| 746 | | - sqlite3_limit(db, SQLITE_LIMIT_WORKER_THREADS, g.iMaxWorkerThreads); |
| 746 | +#if USE_SYSTEM_SQLITE+0==1 |
| 747 | + sqlite3_limit(db, SQLITE_LIMIT_WORKER_THREADS, g.maxWorkerThreads); |
| 748 | +#endif |
| 747 | 749 | sqlite3_exec(db, "PRAGMA foreign_keys=OFF;", 0, 0, 0); |
| 748 | 750 | return db; |
| 749 | 751 | } |
| 750 | 752 | |
| 751 | 753 | |
| | @@ -1051,11 +1053,13 @@ |
| 1051 | 1053 | g.zRepositoryName = mprintf("%s", zDbName); |
| 1052 | 1054 | db_open_or_attach(g.zRepositoryName, "repository", 0); |
| 1053 | 1055 | g.repositoryOpen = 1; |
| 1054 | 1056 | /* Cache "allow-symlinks" option, because we'll need it on every stat call */ |
| 1055 | 1057 | g.allowSymlinks = db_get_boolean("allow-symlinks", 0); |
| 1056 | | - g.iMaxWorkerThreads = db_get_int("max-worker-threads", 0); |
| 1058 | +#if USE_SYSTEM_SQLITE+0==1 |
| 1059 | + g.maxWorkerThreads = db_get_int("max-wthreads", 0); |
| 1060 | +#endif |
| 1057 | 1061 | } |
| 1058 | 1062 | |
| 1059 | 1063 | /* |
| 1060 | 1064 | ** Flags for the db_find_and_open_repository() function. |
| 1061 | 1065 | */ |
| | @@ -2191,11 +2195,11 @@ |
| 2191 | 2195 | { "main-branch", 0, 40, 0, 0, "trunk" }, |
| 2192 | 2196 | { "manifest", 0, 0, 1, 0, "off" }, |
| 2193 | 2197 | { "max-loadavg", 0, 25, 0, 0, "0.0" }, |
| 2194 | 2198 | { "max-upload", 0, 25, 0, 0, "250000" }, |
| 2195 | 2199 | #if USE_SYSTEM_SQLITE+0==1 |
| 2196 | | - { "max-worker-threads", 0, 16, 0, 0, "0" }, |
| 2200 | + { "max-wthreads", 0, 16, 0, 0, "0" }, |
| 2197 | 2201 | #endif |
| 2198 | 2202 | { "mtime-changes", 0, 0, 0, 0, "on" }, |
| 2199 | 2203 | { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " }, |
| 2200 | 2204 | { "proxy", 0, 32, 0, 0, "off" }, |
| 2201 | 2205 | { "relative-paths", 0, 0, 0, 0, "on" }, |
| | @@ -2363,13 +2367,14 @@ |
| 2363 | 2367 | ** global configuration database. |
| 2364 | 2368 | ** |
| 2365 | 2369 | ** max-upload A limit on the size of uplink HTTP requests. The |
| 2366 | 2370 | ** default is 250000 bytes. |
| 2367 | 2371 | ** |
| 2368 | | -** max-worker-threads The maximum number of auxiliary worker threads that a |
| 2369 | | -** single prepared statement may start. Only works when |
| 2370 | | -** SQLite is compiled with multi-thread support. |
| 2372 | +** max-wthreads The maximum number of auxiliary worker threads that a |
| 2373 | +** single prepared statement may start. Only works when |
| 2374 | +** using the system SQLite library and when that library |
| 2375 | +** was compiled with support for threading. |
| 2371 | 2376 | ** |
| 2372 | 2377 | ** mtime-changes Use file modification times (mtimes) to detect when |
| 2373 | 2378 | ** files have been modified. (Default "on".) |
| 2374 | 2379 | ** |
| 2375 | 2380 | ** pgp-command Command used to clear-sign manifests at check-in. |
| 2376 | 2381 | |