diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-01-15 15:38:56 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-01-15 15:38:56 +1100 |
commit | a1d60b1511c710a093bf4c76a69b789288b1bd7d (patch) | |
tree | e436460545a915b7a06d198327b0f34861079f08 /ctdb/server/ctdbd.c | |
parent | f066939a62c72dde8858c53c7e38e3dd3892e7c8 (diff) | |
download | samba-a1d60b1511c710a093bf4c76a69b789288b1bd7d.tar.gz |
Make the size of the in memory ringbuffer for keeping the recent log messages
configureable using --log-ringbuf-size=<num-entries>.
Add an entry in the sysconfig file to set this persistently.
(This used to be ctdb commit c79c2da69bc352f509e7fca4b9172a4b7f23c0f8)
Diffstat (limited to 'ctdb/server/ctdbd.c')
-rw-r--r-- | ctdb/server/ctdbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c index 00f630b99ac..41a1bed485e 100644 --- a/ctdb/server/ctdbd.c +++ b/ctdb/server/ctdbd.c @@ -143,6 +143,7 @@ int main(int argc, const char *argv[]) { "max-persistent-check-errors", 0, POPT_ARG_INT, &options.max_persistent_check_errors, 0, "max allowed persistent check errors (default 0)", NULL }, + { "log-ringbuf-size", 0, POPT_ARG_INT, &log_ringbuf_size, DEBUG_ERR, "Number of log messages we can store in the memory ringbuffer", NULL }, POPT_TABLEEND }; int opt, ret; |