Przeglądaj źródła

The configuration attribute 'saAmfSGNumPrefInserviceSUs' was not
considered by AMF during initial start.


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

Hans Feldt 19 lat temu
rodzic
commit
d149242177
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      exec/amfsg.c

+ 4 - 1
exec/amfsg.c

@@ -1375,7 +1375,10 @@ void amf_sg_start (struct amf_sg *sg, struct amf_node *node)
 
 	sg->avail_state = SG_AC_InstantiatingServiceUnits;
 
-	for (su = sg->su_head; su != NULL; su = su->next) {
+	for (su = sg->su_head;
+		(su != NULL) && (instantiated_sus < sg->saAmfSGNumPrefInserviceSUs);
+		 su = su->next) {
+
 		if (node == NULL) {
 			/* Cluster start */
 			amf_su_instantiate (su);