]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: debug open()
authorSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 22:49:46 +0000 (15:49 -0700)
committerSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 22:49:46 +0000 (15:49 -0700)
src/client/Client.cc

index 878af02b7db0fbeb210e9d8b16409f7e5d1b59b2..e38415309c4cbe5f07d20c985451c6157db31688 100644 (file)
@@ -3784,6 +3784,8 @@ int Client::open(const char *relpath, int flags, mode_t mode)
   tout << relpath << std::endl;
   tout << flags << std::endl;
 
+  dout(5) << "open(" << relpath << ", " << flags << ", " << mode << ")" << dendl;
+
   Fh *fh = NULL;
 
   filepath path(relpath);
@@ -3802,7 +3804,7 @@ int Client::open(const char *relpath, int flags, mode_t mode)
     r = _create(dir, dname.c_str(), flags, mode, &in, &fh);
   }
   if (r < 0)
-    return r;
+    goto out;
 
   if (!fh)
     r = _open(in, flags, mode, &fh);
@@ -3815,6 +3817,7 @@ int Client::open(const char *relpath, int flags, mode_t mode)
     fd_map[r] = fh;
   }
   
+ out:
   tout << r << std::endl;
   dout(3) << "open(" << path << ", " << flags << ") = " << r << dendl;
   return r;