ctdb-common: No need to save previous scheduler priority
commit19fcf6ff5206b14c481f078371f5b407d43900b7
authorAmitay Isaacs <amitay@gmail.com>
Fri, 6 Jun 2014 02:21:25 +0000 (6 12:21 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 12 Jun 2014 03:40:10 +0000 (12 05:40 +0200)
treeeaaa6a5ae9a96025d0d6f0632124e3bf6a8ff134
parent1dda098401a208d792bccc4a3f9e1b56571e6309
ctdb-common: No need to save previous scheduler priority

When calling sched_setscheduler() with SCHED_OTHER, the only valid
priority is 0.  Nice value is "restored" anyway.

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