ctdb-common: Do not abort if restoring scheduling policy fails
authorAmitay Isaacs <amitay@gmail.com>
Fri, 6 Jun 2014 02:27:29 +0000 (12:27 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 12 Jun 2014 03:40:10 +0000 (05:40 +0200)
This code is only executed in child processes, so aborting does not
really achieve much.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/ctdb_util.c

index 82c4764ef8d54d22adb257d2b2e3afe597da6231..4fe411fa390b64a43541dcd019e944425912cc9d 100644 (file)
@@ -377,10 +377,10 @@ void ctdb_restore_scheduler(struct ctdb_context *ctdb)
 
        ti = 0ULL;
        if (getthrds64(getpid(), &te, sizeof(te), &ti, 1) != 1) {
-               ctdb_fatal(ctdb, "Unable to get thread information\n");
+               DEBUG(DEBUG_ERR, ("Unable to get thread information\n"));
        }
        if (thread_setsched(te.ti_tid, 0, SCHED_OTHER) == -1) {
-               ctdb_fatal(ctdb, "Unable to set scheduler to SCHED_OTHER\n");
+               DEBUG(DEBUG_ERR, ("Unable to set scheduler to SCHED_OTHER\n"));
        }
 #endif
 #else /* no AIX */
@@ -389,7 +389,7 @@ void ctdb_restore_scheduler(struct ctdb_context *ctdb)
 
        p.sched_priority = 0;
        if (sched_setscheduler(0, SCHED_OTHER, &p) == -1) {
-               ctdb_fatal(ctdb, "Unable to set scheduler to SCHED_OTHER\n");
+               DEBUG(DEBUG_ERR, ("Unable to set scheduler to SCHED_OTHER\n"));
        }
 #endif
 #endif