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

defect 956
fix assertion where new_message_queue is overflowed when a message is pending
in the fragmentation queue.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@839 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 лет назад
Родитель
Сommit
b879b3901d
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      exec/totempg.c

+ 4 - 0
exec/totempg.c

@@ -425,6 +425,9 @@ int callback_token_received_fn (enum totem_callback_token_type type,
 	if (mcast_packed_msg_count == 0) {
 		return (0);
 	}
+	if (totemmrp_avail() == 0) {
+		return (0);
+	}
 	mcast.fragmented = 0;
 
 	/*
@@ -616,6 +619,7 @@ int totempg_mcast (
 												sizeof(unsigned short);
 			iovecs[2].iov_base = data_ptr;
 			iovecs[2].iov_len = max_packet_size;
+			assert (totemmrp_avail() > 0);
 			res = totemmrp_mcast (iovecs, 3, guarantee);
 
 			/*