Skip to content

Commit

Permalink
Merge pull request #11999: jewel: Error EINVAL: removing mon.a at 172…
Browse files Browse the repository at this point in the history
….21.15.16:6789/0, there will be 1 monitors

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Nov 23, 2016
2 parents 64540a1 + 33b8893 commit 34d42ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mon/MonmapMonitor.cc
Expand Up @@ -414,7 +414,6 @@ bool MonmapMonitor::prepare_command(MonOpRequestRef op)
ss << "adding mon." << name << " at " << addr;
propose = true;
dout(0) << __func__ << " proposing new mon." << name << dendl;
goto reply;

} else if (prefix == "mon remove" ||
prefix == "mon rm") {
Expand Down Expand Up @@ -467,7 +466,7 @@ bool MonmapMonitor::prepare_command(MonOpRequestRef op)
ss << "removing mon." << name << " at " << addr
<< ", there will be " << pending_map.size() << " monitors" ;
propose = true;
goto reply;
err = 0;

} else {
ss << "unknown command " << prefix;
Expand Down

0 comments on commit 34d42ad

Please sign in to comment.