1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Enable shared cache on the server demonstration. (CVS 2899)

FossilOrigin-Name: 8719f880a395db8be65ea45615d8e55985306f1e
This commit is contained in:
drh
2006-01-10 02:30:33 +00:00
parent 7910e76ddb
commit bdd6da23cd
4 changed files with 39 additions and 50 deletions

View File

@@ -331,6 +331,7 @@ int sqlite3_client_close(sqlite3 *pDb){
** true.
*/
void *sqlite3_server(void *NotUsed){
sqlite3_enable_shared_cache(1);
if( pthread_mutex_trylock(&g.serverMutex) ){
return 0; /* Another server is already running */
}