]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: include authority of the source inode in rename witnesses
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 30 Apr 2014 05:42:48 +0000 (13:42 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Wed, 30 Apr 2014 10:31:23 +0000 (18:31 +0800)
rename updates source inode's ctime

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Server.cc

index 64004b2270cdfa3130d06b9102585214a38567b6..407ceed31e1185364f6590cc80f7ba4a3eb0155d 100644 (file)
@@ -5645,6 +5645,8 @@ void Server::handle_client_rename(MDRequestRef& mdr)
     srcdn->list_replicas(witnesses);
   else
     witnesses.insert(srcdn->authority().first);
+  if (srcdnl->is_remote() && !srci->is_auth())
+    witnesses.insert(srci->authority().first);
   destdn->list_replicas(witnesses);
   if (destdnl->is_remote() && !oldin->is_auth())
     witnesses.insert(oldin->authority().first);