mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-04 10:26:02 -05:00
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:
parent
d2932896a3
commit
dc18860dc5
7
src/db.c
7
src/db.c
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user