diff options
author | Sage Weil <sage@inktank.com> | 2013-01-17 22:00:42 -0800 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-02-25 13:58:54 -0800 |
commit | 3a6ce5d0355beaa56199465e94666cae40bd8da1 (patch) | |
tree | e0993ee6c4ea76f43a74fcfd60eae444aca054b4 | |
parent | 36ed407e0f939a9bca57c3ffc0ee5608d50ab7ed (diff) | |
download | ceph-3a6ce5d0355beaa56199465e94666cae40bd8da1.tar.gz |
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 <sage@inktank.com>
(cherry picked from commit e51299fbce6bdc3d6ec736e949ba8643afc965ec)
-rw-r--r-- | src/mds/MDCache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 579429367cc..91bdf7dbc11 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -574,7 +574,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; |