diff options
Diffstat (limited to 'ctdb/common/ctdb_util.c')
-rw-r--r-- | ctdb/common/ctdb_util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c index 30effdd52ef..ed322ac8b7f 100644 --- a/ctdb/common/ctdb_util.c +++ b/ctdb/common/ctdb_util.c @@ -642,8 +642,13 @@ void ctdb_lockdown_memory(struct ctdb_context *ctdb) 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 (getpid() != 0) { + if (getuid() != 0) { return; } |