From dc18860dc5a95ab0a8c6f9aaf4223050f97092f1 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Tue, 27 Apr 2010 19:46:39 +0200 Subject: [PATCH] Enable SQLite3 shared-cache mode This requires SQLite 3.5.0+ for per-process (as opposed to per-thread) shared-cache support. It also enables the use of the unlock notify API. --- src/db.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/db.c b/src/db.c index 6b76840e..9173cf06 100644 --- a/src/db.c +++ b/src/db.c @@ -3939,6 +3939,13 @@ db_init(void) return -1; } + ret = sqlite3_enable_shared_cache(1); + if (ret != SQLITE_OK) + { + DPRINTF(E_FATAL, L_DB, "Could not enable SQLite3 shared-cache mode\n"); + return -1; + } + ret = sqlite3_initialize(); if (ret != SQLITE_OK) {