4
0
Эх сурвалжийг харах

Adapt the deliver_fn in the YKD quorum plugin to the new tpg API.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2196 fd59a12c-fef9-0310-b244-a6a79926bd2f
Christine Caulfield 16 жил өмнө
parent
commit
0feb9936af
1 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 5 5
      exec/vsf_ykd.c

+ 5 - 5
exec/vsf_ykd.c

@@ -336,14 +336,14 @@ static void ykd_state_endian_convert (struct ykd_state *state)
 
 static void ykd_deliver_fn (
 	unsigned int nodeid,
-	const struct iovec *iovec,
-	unsigned int iov_len,
+	const void *msg,
+	unsigned int msg_len,
 	int endian_conversion_required)
 {
 	int all_received = 1;
 	int state_position = 0;
 	int i;
-	char *msg_state = (char *)(iovec->iov_base) + sizeof (struct ykd_header);
+	char *msg_state = (char *)msg + sizeof (struct ykd_header);
 
 	/*
 	 * If this is a localhost address, this node is always primary
@@ -363,7 +363,7 @@ static void ykd_deliver_fn (
 	}
 #endif
 	if (endian_conversion_required &&
-	    (iovec->iov_len > sizeof (struct ykd_header))) {
+	    (msg_len > sizeof (struct ykd_header))) {
 		ykd_state_endian_convert ((struct ykd_state *)msg_state);
 	}
 
@@ -392,7 +392,7 @@ static void ykd_deliver_fn (
 
 	switch (ykd_mode) {
 		case YKD_MODE_SENDSTATE:
-			assert (iovec->iov_len > sizeof (struct ykd_header));
+			assert (msg_len > sizeof (struct ykd_header));
 			/*
 			 * Copy state information for the sending processor
 			 */