]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
db: set ring default size to 0
authorEric Leblond <eric@regit.org>
Sat, 25 Jan 2014 11:26:38 +0000 (12:26 +0100)
committerEric Leblond <eric@regit.org>
Sat, 25 Jan 2014 18:17:56 +0000 (19:17 +0100)
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.

include/ulogd/db.h

index e9b054bdec0cb195962b2fd3d491beb586a0c4a4..9f9e96d6e077002787dd3181dbb86a950811bd32 100644 (file)
@@ -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                                                 \
                {                                               \