forked from pool/corosync
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/corosync?expand=0&rev=30
This commit is contained in:
parent
de2e509de9
commit
8dd545ceaa
@ -1,14 +0,0 @@
|
||||
Index: corosync-1.4.4/exec/main.c
|
||||
===================================================================
|
||||
--- corosync-1.4.4.orig/exec/main.c
|
||||
+++ corosync-1.4.4/exec/main.c
|
||||
@@ -1268,7 +1268,8 @@ static void corosync_setscheduler (void)
|
||||
#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
|
||||
int res;
|
||||
|
||||
- sched_priority = sched_get_priority_max (SCHED_RR);
|
||||
+ /*use the minimal priority same as pacemaker */
|
||||
+ sched_priority = sched_get_priority_min (SCHED_RR);
|
||||
if (sched_priority != -1) {
|
||||
global_sched_param.sched_priority = sched_priority;
|
||||
res = sched_setscheduler (0, SCHED_RR, &global_sched_param);
|
Loading…
x
Reference in New Issue
Block a user