From: xie xingguo Date: Fri, 3 Jun 2016 02:06:10 +0000 (+0800) Subject: mds: kill unused local variables X-Git-Tag: v11.0.0~174^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2151ee7b5061709392a426259ef8edcc72a1fb43;p=ceph.git mds: kill unused local variables Signed-off-by: xie xingguo --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index da1ad902e43..df68c0e8268 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -427,8 +427,6 @@ void MDCache::create_empty_hierarchy(MDSGather *gather) void MDCache::create_mydir_hierarchy(MDSGather *gather) { // create mds dir - char myname[10]; - snprintf(myname, sizeof(myname), "mds%d", int(mds->get_nodeid())); CInode *my = create_system_inode(MDS_INO_MDSDIR(mds->get_nodeid()), S_IFDIR); CDir *mydir = my->get_or_open_dirfrag(this, frag_t());