From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 12:05:32 +0000 (+0100) Subject: mds/MDCache.cc: reduce scope of 'in' in MDCache::open_root_inode() X-Git-Tag: v0.59~54^2~37 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=87a1773cf610f9fbf96666b345658da917ec3e1b;p=ceph.git mds/MDCache.cc: reduce scope of 'in' in MDCache::open_root_inode() Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index facfe895095..b0e4c0aa9ee 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -516,8 +516,8 @@ struct C_MDS_RetryOpenRoot : public Context { void MDCache::open_root_inode(Context *c) { - CInode *in; if (mds->whoami == mds->mdsmap->get_root()) { + CInode *in; in = create_system_inode(MDS_INO_ROOT, S_IFDIR|0755); // initially inaccurate! in->fetch(c); } else {