]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix "had dentry linked to wrong inode" warning
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 18 Jan 2013 02:47:21 +0000 (10:47 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 29 Jan 2013 02:17:34 +0000 (10:17 +0800)
commitc9ff21a9e60e6420840daa2f969cd1e2a54cf81c
tree59154cb9fbeccbc7724bbfcc609decf1c9cf0d20
parentcd8d91078c65b1e029354f0fdddbd0574f03d26b
mds: fix "had dentry linked to wrong inode" warning

The reason of "had dentry linked to wrong inode" warning is that
Server::_rename_prepare() adds the destdir to the EMetaBlob before
adding the straydir. So during MDS recovers, the destdir is first
replayed. The old inode is directly replaced by the source inode.
We can void the warning by adding the straydir first.

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