From: Sage Weil Date: Fri, 18 Jan 2013 06:00:42 +0000 (-0800) Subject: mds: open mydir after replay X-Git-Tag: v0.58~67^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f28faf9e6613bff403bcd958818d8dccd004f9d;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 9557436bb9dd..8b8e8e70f3dd 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;