The branch, master has been updated
       via  21a5cbf9518fafc610939f14874371a52b1dc8b3 (commit)
      from  25d45e69f4ffc2b26061ac13038d52a353e79e61 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 21a5cbf9518fafc610939f14874371a52b1dc8b3
Author: Amitay Isaacs <ami...@gmail.com>
Date:   Thu Jul 26 22:01:50 2012 +1000

    util: Do not lock down memory when running with local daemons
    
    Thanks to Ronnie for highlighting the issue of memory lockdown on AIX.
    Fix typo, use getuid and not getpid.
    
    Signed-off-by: Amitay Isaacs <ami...@gmail.com>

-----------------------------------------------------------------------

Summary of changes:
 common/ctdb_util.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/common/ctdb_util.c b/common/ctdb_util.c
index 30effdd..ed322ac 100644
--- a/common/ctdb_util.c
+++ b/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;
        }
 


-- 
CTDB repository

Reply via email to