]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: MonmapMonitor: drop unnecessary 'goto' statements 12267/head
authorJoao Eduardo Luis <joao@suse.de>
Wed, 2 Nov 2016 15:38:36 +0000 (15:38 +0000)
committerLoic Dachary <ldachary@redhat.com>
Thu, 1 Dec 2016 21:45:31 +0000 (22:45 +0100)
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit 20dcb597e35e6961db81831facefbe22cecddec3)

src/mon/MonmapMonitor.cc

index 294d0369bbd320d7bde065fd608a9bd5f3045401..81964bae5f29e6231804d2665eb4890ae8873463 100644 (file)
@@ -412,7 +412,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") {
@@ -466,7 +465,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;