Просмотр исходного кода

defect 42 - evs service doesn't send config change on evs_initialize

(Logical change 1.183)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@612 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 21 лет назад
Родитель
Сommit
e503df31d8
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      exec/evs.c

+ 4 - 1
exec/evs.c

@@ -145,6 +145,8 @@ static int evs_exit_fn (struct conn_info *conn_info)
 	return (0);
 }
 
+struct res_evs_confchg_callback res_evs_confchg_callback;
+
 static int evs_confchg_fn (
 	enum totem_configuration_type configuration_type,
     struct in_addr *member_list, int member_list_entries,
@@ -155,7 +157,6 @@ static int evs_confchg_fn (
 
 	int i;
 	struct list_head *list;
-	struct res_evs_confchg_callback res_evs_confchg_callback;
 	struct conn_info *conn_info;
 
 	/*
@@ -195,6 +196,8 @@ static int evs_init_two_fn (struct conn_info *conn_info)
 	log_printf (LOG_LEVEL_DEBUG, "Got request to initalize evs service.\n");
 	list_init (&conn_info->conn_list);
 	list_add (&conn_info->conn_list, &confchg_notify);
+	libais_send_response (conn_info, &res_evs_confchg_callback,
+		sizeof (res_evs_confchg_callback));
 
 	return (0);
 }