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

Check to see that the message can be sent before proceeding.

(Logical change 1.82)


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

+ 4 - 0
exec/gmi.c

@@ -989,6 +989,10 @@ int gmi_mcast (
 		assert (iovec[i].iov_len < MESSAGE_SIZE_MAX);
 	}
 
+	if (!gmi_send_ok(priority, total_size)) {
+		return -1;
+	}
+
 	packet_count = (total_size / packet_size);
 
 	gmi_log_printf (gmi_log_level_debug, "Message size is %d\n", total_size);