From: Eric Leblond Date: Sat, 25 Jan 2014 11:26:38 +0000 (+0100) Subject: db: set ring default size to 0 X-Git-Tag: ulogd-2.0.4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a66507871884203229bee9da29ae53c872103e;p=thirdparty%2Fulogd2.git db: set ring default size to 0 As default size was non null, the ring system was activated by default. It was only possible to desactivate the ring system by setting it to ring_buffer_size to 0 in the configuration. This was not the attended behavior. This patch set it to 0 to have only explicit activation of the ring feature. --- diff --git a/include/ulogd/db.h b/include/ulogd/db.h index e9b054b..9f9e96d 100644 --- a/include/ulogd/db.h +++ b/include/ulogd/db.h @@ -65,7 +65,7 @@ struct db_instance { #define TIME_ERR ((time_t)-1) /* Be paranoid */ #define RECONNECT_DEFAULT 2 #define MAX_ONESHOT_REQUEST 10 -#define RING_BUFFER_DEFAULT_SIZE 10 +#define RING_BUFFER_DEFAULT_SIZE 0 #define DB_CES \ { \