Skip to content

Commit

Permalink
Merge pull request #20275 from badone/wip-osdmonitor-unused-function
Browse files Browse the repository at this point in the history
mon/OSDMonitor: Comment out unused function

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Feb 11, 2018
2 parents 4c43c67 + ed7a744 commit 7bb4761
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
17 changes: 0 additions & 17 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1346,23 +1346,6 @@ void OSDMonitor::encode_pending(MonitorDBStore::TransactionRef t)
encode_health(next, t);
}

void OSDMonitor::trim_creating_pgs(creating_pgs_t* creating_pgs,
const ceph::unordered_map<pg_t,pg_stat_t>& pg_stat)
{
auto p = creating_pgs->pgs.begin();
while (p != creating_pgs->pgs.end()) {
auto q = pg_stat.find(p->first);
if (q != pg_stat.end() &&
!(q->second.state & PG_STATE_CREATING)) {
dout(20) << __func__ << " pgmap shows " << p->first << " is created"
<< dendl;
p = creating_pgs->pgs.erase(p);
} else {
++p;
}
}
}

int OSDMonitor::load_metadata(int osd, map<string, string>& m, ostream *err)
{
bufferlist bl;
Expand Down
2 changes: 0 additions & 2 deletions src/mon/OSDMonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,6 @@ class OSDMonitor : public PaxosService {

creating_pgs_t update_pending_pgs(const OSDMap::Incremental& inc,
const OSDMap& nextmap);
void trim_creating_pgs(creating_pgs_t *creating_pgs,
const ceph::unordered_map<pg_t,pg_stat_t>& pgm);
unsigned scan_for_creating_pgs(
const mempool::osdmap::map<int64_t,pg_pool_t>& pools,
const mempool::osdmap::set<int64_t>& removed_pools,
Expand Down
6 changes: 0 additions & 6 deletions src/osd/OSDMapMapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,6 @@ class OSDMapMapping {
assert(osd < acting_rmap.size());
return acting_rmap[osd];
}
/* unsued
const std::vector<pg_t>& get_osd_up_pgs(unsigned osd) {
assert(osd < up_rmap.size());
return up_rmap[osd];
}
*/

void update(const OSDMap& map);
void update(const OSDMap& map, pg_t pgid);
Expand Down

0 comments on commit 7bb4761

Please sign in to comment.