summaryrefslogtreecommitdiffstats
path: root/ctdb/common/ctdb_util.c
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-06-06 15:08:22 +1000
committerMartin Schwenke <martins@samba.org>2014-06-12 05:40:10 +0200
commit22f71579a46203236bb6ec7e5bef3b2151700898 (patch)
treece2d7c262145871e1665e5269433956559718ea2 /ctdb/common/ctdb_util.c
parente11483012460fd3654bd0a3640755f581d3fecf4 (diff)
downloadsamba-22f71579a46203236bb6ec7e5bef3b2151700898.tar.gz
samba-22f71579a46203236bb6ec7e5bef3b2151700898.tar.xz
samba-22f71579a46203236bb6ec7e5bef3b2151700898.zip
ctdb-daemon: Instead of passing ctdb context, pass valgrinding boolean
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/common/ctdb_util.c')
-rw-r--r--ctdb/common/ctdb_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c
index cd7b4d7049..bbaa5ae218 100644
--- a/ctdb/common/ctdb_util.c
+++ b/ctdb/common/ctdb_util.c
@@ -406,14 +406,14 @@ unsigned ctdb_addr_to_port(ctdb_sock_addr *addr)
/* we don't lock future pages here; it would increase the chance that
* we'd fail to mmap later on. */
-void ctdb_lockdown_memory(struct ctdb_context *ctdb)
+void ctdb_lockdown_memory(bool valgrinding)
{
#if defined(HAVE_MLOCKALL) && !defined(_AIX_)
/* Extra stack, please! */
char dummy[10000];
memset(dummy, 0, sizeof(dummy));
- if (ctdb->valgrinding) {
+ if (valgrinding) {
return;
}