Skip to content

Commit

Permalink
Merge pull request #10450 from xiexingguo/xxg-wip-cleanup-options
Browse files Browse the repository at this point in the history
osd: cleanup options and other redundancies

Reviewed-by: Samuel Just <sjust@redhat.com>
  • Loading branch information
yuriw committed Aug 1, 2016
2 parents 4f5e4df + b211257 commit 9d811ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,6 @@ OPTION(osd_pool_default_size, OPT_INT, 3)
OPTION(osd_pool_default_min_size, OPT_INT, 0) // 0 means no specific default; ceph will use size-size/2
OPTION(osd_pool_default_pg_num, OPT_INT, 8) // number of PGs for new pools. Configure in global or mon section of ceph.conf
OPTION(osd_pool_default_pgp_num, OPT_INT, 8) // number of PGs for placement purposes. Should be equal to pg_num
OPTION(osd_compression_plugins, OPT_STR,
"zlib"
" snappy"
) // list of compression plugins
OPTION(osd_pool_default_erasure_code_profile,
OPT_STR,
"plugin=jerasure "
Expand Down
7 changes: 3 additions & 4 deletions src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6874,8 +6874,8 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
osdmap->get_all_osds(old);
for (set<int>::iterator p = old.begin(); p != old.end(); ++p) {
if (*p != whoami &&
osdmap->have_inst(*p) && // in old map
(!newmap->exists(*p) || !newmap->is_up(*p))) { // but not the new one
osdmap->have_inst(*p) && // in old map
!newmap->is_up(*p)) { // but not the new one
if (!waited_for_reservations) {
service.await_reserved_maps();
waited_for_reservations = true;
Expand Down Expand Up @@ -7332,7 +7332,7 @@ void OSD::activate_map()
}
} else {
if (service.recovery_is_paused()) {
dout(1) << "unpausing recovery (NORECOVER flag set)" << dendl;
dout(1) << "unpausing recovery (NORECOVER flag unset)" << dendl;
service.unpause_recovery();
}
}
Expand Down Expand Up @@ -8959,7 +8959,6 @@ void OSD::process_peering_events(
}
dispatch_context_transaction(rctx, pg, &handle);
pg->unlock();
handle.reset_tp_timeout();
}
if (need_up_thru)
queue_want_up_thru(same_interval_since);
Expand Down

0 comments on commit 9d811ca

Please sign in to comment.