diff options
author | Martin Schwenke <martin@meltin.net> | 2013-02-05 12:09:36 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-02-05 12:40:30 +1100 |
commit | 8dc3219e9b9977f9a07e7caa53299071002b20c2 (patch) | |
tree | 9e0791bf303ea5c50a0f24ebd5b6ff637cd0c969 | |
parent | f2ba0e8a65cfa1bc0d24e513e72d8345e5288814 (diff) | |
download | samba-8dc3219e9b9977f9a07e7caa53299071002b20c2.tar.gz samba-8dc3219e9b9977f9a07e7caa53299071002b20c2.tar.xz samba-8dc3219e9b9977f9a07e7caa53299071002b20c2.zip |
Logging: Free the ringbuffer in child processes created with ctdb_fork()
At the moment the log ringbuffer is duplicated in every child process.
Althought it is copy-on-write we want to see if it is contributing to
out-of-memory situations when there are a lot of children.
The ringbuffer isn't accessible from any of the children anyway...
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit a82d3ec12f0fda16d6bfa8442a07595de897c10e)
-rw-r--r-- | ctdb/common/ctdb_fork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/common/ctdb_fork.c b/ctdb/common/ctdb_fork.c index 24534e66c0..a11f75a6de 100644 --- a/ctdb/common/ctdb_fork.c +++ b/ctdb/common/ctdb_fork.c @@ -59,6 +59,9 @@ pid_t ctdb_fork(struct ctdb_context *ctdb) ctdb_restore_scheduler(ctdb); } ctdb->can_send_controls = false; + + ctdb_log_ringbuffer_free(); + return 0; } |