diff options
author | xie xingguo <xie.xingguo@zte.com.cn> | 2016-06-03 04:06:10 +0200 |
---|---|---|
committer | xie xingguo <xie.xingguo@zte.com.cn> | 2016-06-03 04:06:10 +0200 |
commit | 2151ee7b5061709392a426259ef8edcc72a1fb43 (patch) | |
tree | b55c1dfb7189fbb1fb1d78b35cc44c0b9d1fe637 /src/mds | |
parent | mds: fix potential division-by-zero error (diff) | |
download | ceph-2151ee7b5061709392a426259ef8edcc72a1fb43.tar.xz ceph-2151ee7b5061709392a426259ef8edcc72a1fb43.zip |
mds: kill unused local variables
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Diffstat (limited to 'src/mds')
-rw-r--r-- | src/mds/MDCache.cc | 2 |
1 files changed, 0 insertions, 2 deletions
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()); |