[syslog-ng] [PATCH] afmongodb: Make the collection name a simple string.

Gergely Nagy algernon at balabit.hu
Sat Apr 16 18:07:32 CEST 2011


Gergely Nagy <algernon at balabit.hu> writes:

> +  self->ns = g_string_concat (self->db, ".", self->coll, NULL);

This should be g_strconcat(). Suits me for not building with -Werror...

And while I'm here, the rationale behind getting rid of a templatable
collection name is that I couldn't come up with a use-case that would
warrant this. Yet, without it, bulk inserts are far far easier to
implement, and provide a noticable performance boost on higher loads.

-- 
|8]



More information about the syslog-ng mailing list