Files
searxng/searx/engines
Markus Heiser 26801e92af [fix] sqlitedb: create DB Schema (DDL) during app initialization (hardening) (#6187)
The initialization of the DB schema ("base schema") has so far been done on
demand, which causes race conditions with competing threads and processes.

The DDL statements for creating the "base schema" are now executed as part of
the initialization of the app.

Further improvements were made to harden the database applications:

- Wikidata & Radio-Browser engine perform their initialization only once (so far
  the initialization was carried out in each thread/process).

- If multiple processes try to set DB's WAL mode when opening the DB at the same
  time, this usually leads to another race condition, which is now also caught.

Related:

- https://github.com/searxng/searxng/issues/6181#issuecomment-4586705

Closes: #6181

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2026-06-10 15:48:49 +02:00
..
2026-03-03 20:31:25 +01:00
2025-08-12 15:18:46 +02:00
2025-03-30 12:41:43 +02:00
2026-03-03 20:31:25 +01:00
2026-06-05 08:07:30 +02:00
2026-04-07 15:49:46 +02:00
2026-03-03 20:31:25 +01:00
2025-03-30 14:25:58 +02:00
2026-03-03 20:31:25 +01:00
2025-11-21 11:20:10 +01:00
2025-04-18 09:30:17 +02:00
2026-06-08 13:35:13 +02:00
2026-03-03 20:31:25 +01:00
2026-03-03 20:31:25 +01:00