Skip to content

Commit

Permalink
Trival: fix a -Wunused-label warning in compiling.
Browse files Browse the repository at this point in the history
os/filestore/FileStore.cc: In member function ‘int FileStore::_zero(const coll_t&, const ghobject_t&, uint64_t, size_t)’:
os/filestore/FileStore.cc:3328:2: warning: label ‘out’ defined but not used [-Wunused-label]
  out:
  ^

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
  • Loading branch information
yangdongsheng committed Mar 30, 2016
1 parent 72ea178 commit 3d3c7e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/mon/MDSMonitor.cc
Expand Up @@ -2112,7 +2112,6 @@ int MDSMonitor::filesystem_command(
{
dout(4) << __func__ << " prefix='" << prefix << "'" << dendl;
op->mark_mdsmon_event(__func__);
MMonCommand *m = static_cast<MMonCommand*>(op->get_req());
int r = 0;
string whostr;
cmd_getval(g_ceph_context, cmdmap, "who", whostr);
Expand Down
6 changes: 6 additions & 0 deletions src/os/filestore/FileStore.cc
Expand Up @@ -3325,7 +3325,13 @@ int FileStore::_zero(const coll_t& cid, const ghobject_t& oid, uint64_t offset,
ret = _write(cid, oid, offset, len, bl);
}

#ifdef CEPH_HAVE_FALLOCATE
# if !defined(DARWIN) && !defined(__FreeBSD__)
# ifdef FALLOC_FL_KEEP_SIZE
out:
# endif
# endif
#endif
dout(20) << "zero " << cid << "/" << oid << " " << offset << "~" << len << " = " << ret << dendl;
return ret;
}
Expand Down

0 comments on commit 3d3c7e6

Please sign in to comment.