Memory lockdown causes recovery daemon to crash on AIX.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
* we'd fail to mmap later on. */
void ctdb_lockdown_memory(struct ctdb_context *ctdb)
{
-#ifdef HAVE_MLOCKALL
+#if defined(HAVE_MLOCKALL) && !defined(_AIX_)
/* Extra stack, please! */
char dummy[10000];
memset(dummy, 0, sizeof(dummy));
return;
}
- /* TODO: Add a command line option to disable memory lockdown.
- * This can be a performance issue on AIX since fork() copies
- * all locked memory pages.
- */
-
/* Ignore when running in local daemons mode */
if (getuid() != 0) {
return;