Skip to content

Commit

Permalink
Merge pull request ceph#33155 from shyukri/wip-43916-nautilus
Browse files Browse the repository at this point in the history
nautilus: mon/ConfigMonitor: only propose if leader

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
yuriw committed Feb 13, 2020
2 parents 61a8864 + 4b60c0e commit 066b4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/ConfigMonitor.cc
Expand Up @@ -704,7 +704,7 @@ bool ConfigMonitor::prepare_command(MonOpRequestRef op)

void ConfigMonitor::tick()
{
if (!is_active()) {
if (!is_active() || !mon->is_leader()) {
return;
}
dout(10) << __func__ << dendl;
Expand Down

0 comments on commit 066b4f0

Please sign in to comment.