Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon/OSDMonitor: fix output func name in can_mark_out #14758

Merged
merged 1 commit into from Apr 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/mon/OSDMonitor.cc
Expand Up @@ -1821,23 +1821,23 @@ bool OSDMonitor::can_mark_up(int i)
bool OSDMonitor::can_mark_out(int i)
{
if (osdmap.test_flag(CEPH_OSDMAP_NOOUT)) {
dout(5) << "can_mark_out NOOUT flag set, will not mark osds out" << dendl;
dout(5) << __func__ << " NOOUT flag set, will not mark osds out" << dendl;
return false;
}
int num_osds = osdmap.get_num_osds();
if (num_osds == 0) {
dout(5) << "can_mark_out no osds" << dendl;
dout(5) << __func__ << " no osds" << dendl;
return false;
}
int in = osdmap.get_num_in_osds() - pending_inc.get_net_marked_out(&osdmap);
float in_ratio = (float)in / (float)num_osds;
if (in_ratio < g_conf->mon_osd_min_in_ratio) {
if (i >= 0)
dout(5) << "can_mark_down current in_ratio " << in_ratio << " < min "
dout(5) << __func__ << " current in_ratio " << in_ratio << " < min "
<< g_conf->mon_osd_min_in_ratio
<< ", will not mark osd." << i << " out" << dendl;
else
dout(5) << "can_mark_down current in_ratio " << in_ratio << " < min "
dout(5) << __func__ << " current in_ratio " << in_ratio << " < min "
<< g_conf->mon_osd_min_in_ratio
<< ", will not mark osds out" << dendl;
return false;
Expand Down