From fcbbe9ab2a2bc323bf98ee9bc6d5406736bd86aa Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 3 Mar 2009 11:33:42 -0800 Subject: [PATCH] cfuse: fix startup --- src/cfuse.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cfuse.cc b/src/cfuse.cc index d510f9069434e..d65313ffee17a 100644 --- a/src/cfuse.cc +++ b/src/cfuse.cc @@ -71,6 +71,9 @@ int main(int argc, const char **argv, const char *envp[]) { // start up network rank.bind(); cout << "bound to " << rank.get_rank_addr() << ", mounting ceph" << std::endl; + + Client *client = new Client(rank.register_entity(entity_name_t::CLIENT()), &monmap); + rank.start(); rank.set_policy(entity_name_t::TYPE_MON, Rank::Policy::lossy_fast_fail()); @@ -78,7 +81,6 @@ int main(int argc, const char **argv, const char *envp[]) { rank.set_policy(entity_name_t::TYPE_OSD, Rank::Policy::lossless()); // start client - Client *client = new Client(rank.register_entity(entity_name_t::CLIENT()), &monmap); client->init(); // start up fuse -- 2.39.5