]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cfuse: fix startup
authorSage Weil <sage@newdream.net>
Tue, 3 Mar 2009 19:33:42 +0000 (11:33 -0800)
committerSage Weil <sage@newdream.net>
Tue, 3 Mar 2009 19:33:42 +0000 (11:33 -0800)
src/cfuse.cc

index d510f9069434e4f5a09dff95549503ec676f3164..d65313ffee17a8560c52d08ca8c2328f1c427450 100644 (file)
@@ -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