]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: MonmapMonitor: drop unnecessary 'goto' statements 11999/head
authorJoao Eduardo Luis <joao@suse.de>
Wed, 2 Nov 2016 15:38:36 +0000 (15:38 +0000)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Tue, 15 Nov 2016 16:43:59 +0000 (22:13 +0530)
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit 20dcb597e35e6961db81831facefbe22cecddec3)

src/mon/MonmapMonitor.cc

index a40f6c19a6982d95f6bc750f4e5569a8462fa243..5f20b98eab433c07f7553092550e8650d671bdd4 100644 (file)
@@ -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") {
@@ -468,7 +467,6 @@ bool MonmapMonitor::prepare_command(MonOpRequestRef op)
        << ", there will be " << pending_map.size() << " monitors" ;
     propose = true;
     err = 0;
-    goto reply;
 
   } else {
     ss << "unknown command " << prefix;