]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
fixed up rename relative path root check
authorSage Weil <sage@newdream.net>
Mon, 31 Dec 2007 20:47:09 +0000 (12:47 -0800)
committerSage Weil <sage@newdream.net>
Mon, 31 Dec 2007 20:47:09 +0000 (12:47 -0800)
src/mds/Server.cc

index be6996242263ec7d34fb696ec1f1e0ea3c267c7d..ffeee1de8079ffc54e160493750cf9a8a79daed0 100644 (file)
@@ -2689,7 +2689,7 @@ void Server::handle_client_rename(MDRequest *mdr)
   // src+dest _must_ share commont root for locking to prevent orphans
   filepath destpath = req->get_filepath2();
   filepath srcpath = req->get_filepath();
-  if (destpath.ino != srcpath.ino) {
+  if (destpath.get_ino() != srcpath.get_ino()) {
     // error out for now; eventually, we should find the deepest common root
     derr(0) << "rename src + dst must share common root; fix client or fix me" << dendl;
     assert(0);