ubik-clone-support-20010212
authorHartmut Reuter <reuter@rzg.mpg.de>
Wed, 28 Mar 2001 07:51:25 +0000 (07:51 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 28 Mar 2001 07:51:25 +0000 (07:51 +0000)
ubik library support for readonly clones

src/ubik/beacon.c

index 59fb4c8..bb11cbd 100644 (file)
@@ -211,12 +211,16 @@ ubeacon_InitServerListCommon(ame, info, clones, aservers)
                 }
                 ++nServers;
             }
-           ts->vote_rxcid = rx_NewConnection(servAddr, ubik_callPortal, 
-               VOTE_SERVICE_ID, 
-               ubikSecClass, ubikSecIndex);            /* for vote reqs */
-           ts->disk_rxcid = rx_NewConnection(servAddr, ubik_callPortal, 
-               DISK_SERVICE_ID, ubikSecClass, 
-               ubikSecIndex);                          /* for disk reqs */
+           /* for vote reqs */
+           ts->vote_rxcid = rx_NewConnection(info->hostAddr[i].sin_addr.s_addr,
+                                             ubik_callPortal, 
+                                             VOTE_SERVICE_ID, 
+                                             ubikSecClass, ubikSecIndex);
+           /* for disk reqs */
+           ts->disk_rxcid = rx_NewConnection(info->hostAddr[i].sin_addr.s_addr,
+                                             ubik_callPortal, 
+                                             DISK_SERVICE_ID, ubikSecClass, 
+                                             ubikSecIndex);                 
            ts->up = 1;
        }
     } else {