Skip to content

Commit

Permalink
mds: open mydir after replay
Browse files Browse the repository at this point in the history
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 <sage@inktank.com>
  • Loading branch information
Sage Weil committed Jan 18, 2013
1 parent dd7caf5 commit 6f28faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mds/MDCache.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 6f28faf

Please sign in to comment.