From: Eric Leblond Date: Sun, 26 Jan 2014 10:33:54 +0000 (+0100) Subject: db: don't loose one packet on reconnect X-Git-Tag: ulogd-2.0.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ebf1795c064cdde5ddaf66a263f532030317dd5;p=thirdparty%2Fulogd2.git db: don't loose one packet on reconnect This patch improves database reconnection handling in ring buffer mode. Ulogd now redo the failed query and do not loose anymore one packet. --- diff --git a/util/db.c b/util/db.c index 1f74712..24966a5 100644 --- a/util/db.c +++ b/util/db.c @@ -590,7 +590,8 @@ static void *__inject_thread(void *gdi) "permanently disabling plugin\n"); di->interp = &disabled_interp_db; return NULL; - } + } else /* try to re run query */ + continue; } *wr_place = RING_NO_QUERY; di->ring.rd_item++;