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

I found some (copy paste I guess) errors in the AMF library. It was
the reason for why component invoked healthchecks did not work at all.


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

Hans Feldt 19 лет назад
Родитель
Сommit
9506e6528d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      lib/amf.c

+ 3 - 3
lib/amf.c

@@ -602,7 +602,7 @@ saAmfPmStart (
 		return (error);
 		return (error);
 	}
 	}
 
 
-	req_lib_amf_pmstart.header.size = sizeof (struct req_lib_amf_componentunregister);
+	req_lib_amf_pmstart.header.size = sizeof (struct req_lib_amf_pmstart);
 	req_lib_amf_pmstart.header.id = MESSAGE_REQ_AMF_PMSTART;
 	req_lib_amf_pmstart.header.id = MESSAGE_REQ_AMF_PMSTART;
 	memcpy (&req_lib_amf_pmstart.compName, compName,
 	memcpy (&req_lib_amf_pmstart.compName, compName,
 		sizeof (SaNameT));
 		sizeof (SaNameT));
@@ -728,7 +728,7 @@ saAmfHealthcheckConfirm (
 		return (error);
 		return (error);
 	}
 	}
 
 
-	req_lib_amf_healthcheckconfirm.header.size = sizeof (struct req_lib_amf_componentunregister);
+	req_lib_amf_healthcheckconfirm.header.size = sizeof (struct req_lib_amf_healthcheckconfirm);
 	req_lib_amf_healthcheckconfirm.header.id = MESSAGE_REQ_AMF_HEALTHCHECKCONFIRM;
 	req_lib_amf_healthcheckconfirm.header.id = MESSAGE_REQ_AMF_HEALTHCHECKCONFIRM;
 	memcpy (&req_lib_amf_healthcheckconfirm.compName, compName,
 	memcpy (&req_lib_amf_healthcheckconfirm.compName, compName,
 		sizeof (SaNameT));
 		sizeof (SaNameT));
@@ -848,7 +848,7 @@ saAmfCSIQuiescingComplete (
 		return (error);
 		return (error);
 	}
 	}
 
 
-	req_lib_amf_csiquiescingcomplete.header.size = sizeof (struct req_lib_amf_componentunregister);
+	req_lib_amf_csiquiescingcomplete.header.size = sizeof (struct req_lib_amf_csiquiescingcomplete);
 	req_lib_amf_csiquiescingcomplete.header.id = MESSAGE_REQ_AMF_CSIQUIESCINGCOMPLETE;
 	req_lib_amf_csiquiescingcomplete.header.id = MESSAGE_REQ_AMF_CSIQUIESCINGCOMPLETE;
 	req_lib_amf_csiquiescingcomplete.invocation = invocation;
 	req_lib_amf_csiquiescingcomplete.invocation = invocation;
 	req_lib_amf_csiquiescingcomplete.error = error;
 	req_lib_amf_csiquiescingcomplete.error = error;