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.
This commit is contained in:
Julien BLACHE 2010-04-27 19:46:39 +02:00
parent d2932896a3
commit dc18860dc5

View File

@ -3939,6 +3939,13 @@ db_init(void)
return -1; 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(); ret = sqlite3_initialize();
if (ret != SQLITE_OK) if (ret != SQLITE_OK)
{ {