[syslog-ng] [Bug 120] afsql. c afsql_dd_format_* routines should include table in persist_name string

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Mon May 16 18:29:21 CEST 2011


https://bugzilla.balabit.com/show_bug.cgi?id=120





--- Comment #1 from John Kristoff <jtk at cymru.com>  2011-05-16 18:29:21 ---
(From update of attachment 36)
><html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><pre>--- afsql.c
>+++ new.afsql.c
>@@ -865,11 +865,11 @@
> static gchar *
> afsql_dd_format_stats_instance(AFSqlDestDriver *self)
> {
>-  static gchar persist_name[64];
>+  static gchar persist_name[256];
> 
>   g_snprintf(persist_name, sizeof(persist_name),
>-             "%s,%s,%s,%s",
>-             self->type, self->host, self->port, self->database);
>+             "%s,%s,%s,%s,%s",
>+             self->type, self->host, self->port, self->database, self->table->template);
>   return persist_name;
> }
> 
>@@ -879,8 +879,8 @@
>   static gchar persist_name[256];
> 
>   g_snprintf(persist_name, sizeof(persist_name),
>-             "afsql_dd(%s,%s,%s,%s)",
>-             self->type, self->host, self->port, self->database);
>+             "afsql_dd(%s,%s,%s,%s,%s)",
>+             self->type, self->host, self->port, self->database, self->table->template);
>   return persist_name;
> }


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list