mds: replay: save the right dir!

We were using the wrong one and breaking replay.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
Greg Farnum 2011-06-08 16:52:57 -07:00
parent f69bc30106
commit c1ea3a263b

View File

@ -579,7 +579,7 @@ void EMetaBlob::replay(MDS *mds, LogSegment *logseg)
if (dn->get_linkage()->get_inode() != in && in->get_parent_dn()) {
dout(10) << "EMetaBlob.replay unlinking " << *in << dendl;
if (in == renamed_diri)
olddir = dir;
olddir = in->get_parent_dn()->get_dir();
in->get_parent_dn()->get_dir()->unlink_inode(in->get_parent_dn());
}
if (in->get_parent_dn() && in->inode.anchored != p->inode.anchored)