Module: kamailio Branch: master Commit: 9d21fa0562b8b4379b882d89715c58028eb358dd URL: https://github.com/kamailio/kamailio/commit/9d21fa0562b8b4379b882d89715c5802...
Author: Andreas Granig agranig@linguin.org Committer: Andreas Granig agranig@linguin.org Date: 2024-11-19T14:18:09+01:00
db_sqlite: Add busy timeout param to improve concurrency
It's needed specifically when setting WAL, because on module loading, each child creates its own DB connection and sets the WAL (or other options you might set), and it all happens roughly at the same time.
Without setting the busy-timeout, starting of kamailio will fail due to locking issues with sqlite.
---
Modified: src/modules/db_sqlite/db_sqlite.c Modified: src/modules/db_sqlite/db_sqlite.h Modified: src/modules/db_sqlite/dbase.c Modified: src/modules/db_sqlite/doc/db_sqlite.xml Modified: src/modules/db_sqlite/doc/db_sqlite_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/9d21fa0562b8b4379b882d89715c5802... Patch: https://github.com/kamailio/kamailio/commit/9d21fa0562b8b4379b882d89715c5802...