I found a more consistent point at which to make this change.

Particularly when the 0..2^31 node id is created here, I find it hard  
to comprehend
how this could introduce any compatibility issues.  I see no  
difference between
having this patch execute and an admin setting the same value manually  
in openais.conf


--- whitetank-svn/exec/totemnet.c       2008-08-13 22:38:15.000000000 +0200
+++ whitetank-dev/exec/totemnet.c       2008-08-22 10:59:23.000000000 +0200
@@ -1227,6 +1227,15 @@ int totemnet_initialize (

        instance->totemnet_poll_handle = poll_handle;

+       if(instance->totem_config->node_id == 0) {      
+               int32_t nodeid = 0;
+               memcpy (&nodeid, instance->totem_interface->bindnet.addr, 
sizeof  
(int32_t));
+               if(nodeid < 0) {
+                       nodeid = 0 - nodeid;
+               }
+               instance->totem_config->node_id = nodeid;
+       }
+
        instance->totem_interface->bindnet.nodeid = instance->totem_config- 
 >node_id;

        instance->context = context;

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to