]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/Server: fix stray reintegration
authorJohn Spray <john.spray@redhat.com>
Thu, 29 Jan 2015 19:00:21 +0000 (19:00 +0000)
committerJohn Spray <john.spray@redhat.com>
Fri, 20 Mar 2015 12:32:47 +0000 (12:32 +0000)
commita01e9b1f1be48b4ea4bb7f667f5c8d5a4402fd1e
tree06c74b4ca3d38932aa0522023db249620c897437
parentb94189f9c067199f6fca76d7c4f55ad9262f7405
mds/Server: fix stray reintegration

This was checking tracei's primary parent DN for remoteness
as a condition to calling eval_remote.  However, the *primary*
parent DN in this case is the stray, which is not remote.

The correct check is tracedn (the remote dentry that got us here)
rather than tracei->get_parent_dn() (the primary dentry for the
inode that we have looked up).

This leads to eval_remote being invoked, and reintegration
of stray hard-linked inodes working.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/Server.cc