From: Luo Kexue Date: Mon, 28 Aug 2017 01:24:10 +0000 (+0800) Subject: osd, mds, tools: drop the invalid comment and some unused variables X-Git-Tag: v13.0.1~1023^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e93424167de15e91394169f4395f5f446e710e2;p=ceph-ci.git osd, mds, tools: drop the invalid comment and some unused variables Signed-off-by: Luo Kexue --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 19cc45ced7d..67caa4b3791 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -618,9 +618,7 @@ void Server::finish_force_open_sessions(map& cm, << " initial v " << mds->sessionmap.get_version() << dendl; - int sessions_inserted = 0; for (map::iterator p = cm.begin(); p != cm.end(); ++p) { - sessions_inserted++; Session *session = mds->sessionmap.get_session(p->second.name); assert(session); diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index d05ced7d46c..bcaf5b3818b 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -2393,7 +2393,6 @@ void PrimaryLogPG::record_write_error(OpRequestRef op, const hobject_t &soid, dout(20) << __func__ << " r=" << r << dendl; assert(op->may_write()); const osd_reqid_t &reqid = static_cast(op->get_req())->get_reqid(); - ObjectContextRef obc; mempool::osd_pglog::list entries; entries.push_back(pg_log_entry_t(pg_log_entry_t::ERROR, soid, get_next_version(), eversion_t(), 0, diff --git a/src/osd/ReplicatedBackend.h b/src/osd/ReplicatedBackend.h index 52048eb8f01..7cb1df40c63 100644 --- a/src/osd/ReplicatedBackend.h +++ b/src/osd/ReplicatedBackend.h @@ -58,7 +58,6 @@ public: void check_recovery_sources(const OSDMapRef& osdmap) override; - /// @see PGBackend::delay_message_until_active bool can_handle_while_inactive(OpRequestRef op) override; /// @see PGBackend::handle_message diff --git a/src/tools/ceph_osdomap_tool.cc b/src/tools/ceph_osdomap_tool.cc index 21cf60c5aed..e203c2a02e0 100644 --- a/src/tools/ceph_osdomap_tool.cc +++ b/src/tools/ceph_osdomap_tool.cc @@ -27,7 +27,7 @@ using namespace std; int main(int argc, char **argv) { po::options_description desc("Allowed options"); - string store_path, cmd, out_path, oid; + string store_path, cmd, oid; bool debug = false; desc.add_options() ("help", "produce help message")