Explorar el Código

If there was a quorum {} section in corosync.conf but no provider specified
then we would always report inquorate.

This was wrong, if no provider is specified then we are always quorate.



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

Christine Caulfield hace 17 años
padre
commit
205ea1d44b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      exec/vsf_quorum.c

+ 1 - 1
exec/vsf_quorum.c

@@ -303,7 +303,7 @@ static int quorum_exec_init_fn (struct corosync_api_v1 *api)
 			quorum_iface->init (api, quorum_api_set_quorum);
 		}
 	}
-	else {
+	if (!quorum_iface) {
 		/*
                  * With no quorum provider, we are always quorate 
                  */