diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-24 14:05:00 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-24 14:05:00 +0200 |
commit | 6e093aa32674235c76410a10d1cc7321d3bf33bc (patch) | |
tree | 545549d0e2361f4ef7a41a3f1e840e310664c9a5 /runtime/rsyslog.h | |
parent | 31fae7b93d7aa94b7b3fcbfdf101328230ea6302 (diff) | |
download | rsyslog-6e093aa32674235c76410a10d1cc7321d3bf33bc.tar.gz rsyslog-6e093aa32674235c76410a10d1cc7321d3bf33bc.tar.xz rsyslog-6e093aa32674235c76410a10d1cc7321d3bf33bc.zip |
made hardcoded max string number persistent
see commit for reasoning
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r-- | runtime/rsyslog.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index 2279856e..a8b5d401 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -58,7 +58,15 @@ * rgerhards, 2006-11-30 */ -#define CONF_OMOD_NUMSTRINGS_BUFSIZE 2 /* cache for pointers to output module buffer pointers */ +#define CONF_OMOD_NUMSTRINGS_MAXSIZE 2 /* cache for pointers to output module buffer pointers. All + * rsyslog-provided plugins do NOT need more than two buffers. If + * more are needed (future developments, third-parties), rsyslog + * must be recompiled with a larger parameter. Hardcoding this + * saves us some overhead, both in runtime in code complexity. As + * it is doubtful if ever more than 2 parameters are needed, the + * approach taken here is considered appropriate. + * rgerhards, 2010-06-24 + */ /* ############################################################# * * # End Config Settings # * |