From: Sage Weil Date: Fri, 18 Jan 2013 06:00:42 +0000 (-0800) Subject: mds: open mydir after replay X-Git-Tag: v0.57~84^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e51299fbce6bdc3d6ec736e949ba8643afc965ec;p=ceph.git mds: open mydir after replay In certain cases, we may replay the journal and not end up with the dirfrag for mydir open. This is fine--we just need to open it up and fetch it below. Signed-off-by: Sage Weil --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 545ffdca2e15..2eb8220b3f8c 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -575,7 +575,7 @@ void MDCache::open_root() void MDCache::populate_mydir() { assert(myin); - CDir *mydir = myin->get_dirfrag(frag_t()); + CDir *mydir = myin->get_or_open_dirfrag(this, frag_t()); assert(mydir); dout(10) << "populate_mydir " << *mydir << dendl;