[Sheepdog] [PATCH 04/18] collie: fix start up
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Thu Mar 11 07:48:03 CET 2010
Collie shouldn't join cpg members until it can surely start up.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
collie/collie.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/collie/collie.c b/collie/collie.c
index 6f87035..e1d160f 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -101,16 +101,16 @@ int main(int argc, char **argv)
if (!dobj_queue)
exit(1);
+ ret = create_listen_port(port, sys);
+ if (ret)
+ exit(1);
+
ret = create_cluster(port);
if (ret) {
eprintf("failed to create sheepdog cluster.\n");
exit(1);
}
- ret = create_listen_port(port, sys);
- if (ret)
- exit(1);
-
dprintf("Sheepdog daemon (version %s) started\n", SD_VERSION);
event_loop(-1);
--
1.5.6.5
More information about the sheepdog
mailing list