Skip to content

Commit

Permalink
Merge pull request #7991 from xiexingguo/xxg-wip-remove-upthrupending
Browse files Browse the repository at this point in the history
osd: remove up_thru_pending field, which is never used

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Mar 11, 2016
2 parents 9e86b53 + cf0665e commit f0c512b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions src/osd/OSD.cc
Expand Up @@ -1602,7 +1602,7 @@ OSD::OSD(CephContext *cct_, ObjectStore *store_,
last_pg_create_epoch(0),
mon_report_lock("OSD::mon_report_lock"),
stats_ack_timeout(cct->_conf->osd_mon_ack_timeout),
up_thru_wanted(0), up_thru_pending(0),
up_thru_wanted(0),
requested_full_first(0),
requested_full_last(0),
pg_stat_queue_lock("OSD::pg_stat_queue_lock"),
Expand Down Expand Up @@ -4801,7 +4801,6 @@ void OSD::send_alive()
epoch_t up_thru = osdmap->get_up_thru(whoami);
dout(10) << "send_alive up_thru currently " << up_thru << " want " << up_thru_wanted << dendl;
if (up_thru_wanted > up_thru) {
up_thru_pending = up_thru_wanted;
dout(10) << "send_alive want " << up_thru_wanted << dendl;
monc->send_mon_message(new MOSDAlive(osdmap->get_epoch(), up_thru_wanted));
}
Expand Down
1 change: 0 additions & 1 deletion src/osd/OSD.h
Expand Up @@ -2019,7 +2019,6 @@ class OSD : public Dispatcher,

// -- alive --
epoch_t up_thru_wanted;
epoch_t up_thru_pending;

void queue_want_up_thru(epoch_t want);
void send_alive();
Expand Down
4 changes: 0 additions & 4 deletions src/osd/PG.h
Expand Up @@ -1121,10 +1121,6 @@ class PG : DoutPrefixProvider {
void split_into(pg_t child_pgid, PG *child, unsigned split_bits);
virtual void _split_into(pg_t child_pgid, PG *child, unsigned split_bits) = 0;

loff_t get_log_write_pos() {
return 0;
}

friend class C_OSD_RepModify_Commit;


Expand Down

0 comments on commit f0c512b

Please sign in to comment.