logsys: When corosync is compiled with --enable-small-memory-footprint, also reduce the size of the logsys SHM

Signed-off-by: Jerome Flesch <jerome.flesch@netasq.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Jerome Flesch 2011-05-27 13:45:27 +02:00
parent 795aa5e24c
commit 6bec0aa227

View File

@ -124,6 +124,12 @@
#include "evil.h"
#include "tsafe.h"
#ifdef HAVE_SMALL_MEMORY_FOOTPRINT
#define IPC_LOGSYS_SIZE 1024*64
#else
#define IPC_LOGSYS_SIZE 8192*128
#endif
LOGSYS_DECLARE_SYSTEM ("corosync",
LOGSYS_MODE_OUTPUT_STDERR | LOGSYS_MODE_THREADED | LOGSYS_MODE_FORK,
0,
@ -132,7 +138,7 @@ LOGSYS_DECLARE_SYSTEM ("corosync",
LOG_DAEMON,
LOG_INFO,
NULL,
1000000);
IPC_LOGSYS_SIZE);
LOGSYS_DECLARE_SUBSYS ("MAIN");