sqlite thread safety and extended result codes, mainly.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4183 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-02-17 22:43:19 +00:00
parent 8e1461b3f1
commit 4bea8bb6ba
4 changed files with 9 additions and 0 deletions

View File

@ -2148,6 +2148,7 @@ sqlite3* tf_ssb_acquire_db_reader(tf_ssb_t* ssb)
else
{
sqlite3_open_v2(ssb->db_path, &db, SQLITE_OPEN_READONLY, NULL);
tf_ssb_db_init_reader(db);
}
uv_mutex_unlock(&ssb->db_readers_lock);
return db;