Przeglądaj źródła

sched_params log message incorrect

The sched_params parameter was set before being printed.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Reviewed-by:  <sdake@redhat.com>
(cherry picked from commit ae4a3af3407ec185f88172fdc88cc6227647565b)
Steven Dake 14 lat temu
rodzic
commit
813a16ca9d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      exec/main.c

+ 1 - 1
exec/main.c

@@ -1247,10 +1247,10 @@ static void corosync_setscheduler (void)
 		if (res == -1) {
 			char error_str[100];
 			strerror_r (errno, error_str, 100);
-			global_sched_param.sched_priority = 0;
 			log_printf (LOGSYS_LEVEL_WARNING, "Could not set SCHED_RR at priority %d: %s\n",
 				global_sched_param.sched_priority, error_str);
 
+			global_sched_param.sched_priority = 0;
 			logsys_thread_priority_set (SCHED_OTHER, NULL, 1);
 		} else {
 			/*