path: root/
diff options
authorEric Leblond <>2013-04-20 12:44:17 +0200
committerEric Leblond <>2013-05-21 19:57:02 +0200
commitbc817c2077ddfb37041a20cf7c71bc71b4d56003 (patch)
treed840879a6649955ab00ec76bd880c7920f69c651 /
parent1d84cdeaa56fe003c4beb0452c8bc476ecfd75a8 (diff)
db: add ring buffer for DB query
This patch adds an optional ring buffer option which modify the way database queries are made. The main thread is only handling kernel message reading and query formatting. The SQL request is made in a separate dedicated thread. The idea is to try to avoid buffer overrun by minimizing the time requested to treat kernel message. Doing synchronous SQL request, as it was made before was causing a delay which could cause some messages to be lost in case of burst from kernel side.
Diffstat (limited to '')
1 files changed, 4 insertions, 0 deletions
diff --git a/ b/
index 3e5e648..11a56d6 100644
--- a/
+++ b/
@@ -233,6 +233,10 @@ pass="changeme"
+# If superior to 1 a thread dedicated to SQL request execution
+# is created. The value stores the number of SQL request to keep
+# in the ring buffer