]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Paxos: make all handle_accept paths go via out label
authorSage Weil <sage@inktank.com>
Mon, 15 Jul 2013 19:57:40 +0000 (12:57 -0700)
committerSage Weil <sage@inktank.com>
Mon, 15 Jul 2013 20:42:53 +0000 (13:42 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Paxos.cc

index e6f20a673487441df8c05333832f27043d658664..22235c99c435364676bb3264e37777dd71f43435 100644 (file)
@@ -593,14 +593,12 @@ void Paxos::handle_accept(MMonPaxos *accept)
   if (accept->pn != accepted_pn) {
     // we accepted a higher pn, from some other leader
     dout(10) << " we accepted a higher pn " << accepted_pn << ", ignoring" << dendl;
-    accept->put();
-    return;
+    goto out;
   }
   if (last_committed > 0 &&
       accept->last_committed < last_committed-1) {
     dout(10) << " this is from an old round, ignoring" << dendl;
-    accept->put();
-    return;
+    goto out;
   }
   assert(accept->last_committed == last_committed ||   // not committed
         accept->last_committed == last_committed-1);  // committed