]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
monitor: assert out early if we get our own sync_start back
authorGreg Farnum <greg@inktank.com>
Fri, 26 Apr 2013 22:27:39 +0000 (15:27 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 26 Apr 2013 22:27:51 +0000 (15:27 -0700)
Signed-off-by: Greg Farnum <greg@inktank.com>
src/mon/Monitor.cc

index 0b4a44f1649f51f536dacea3ebb9dff0527c09c2..739f9b9d182af17c15c64cfc257859ca3a9dbfdd 100644 (file)
@@ -764,6 +764,13 @@ void Monitor::handle_sync_start(MMonSync *m)
 {
   dout(10) << __func__ << " " << *m << dendl;
 
+  /**
+   * This looks a bit odd, but we've seen cases where sync start messages
+   * get bounced around and end up at the originator without anybody
+   * noticing!
+   */
+  assert(m->reply_to != messenger->get_myinst());
+
   /* If we are not the leader, then some monitor picked us as the point of
    * entry to the quorum during its synchronization process. Therefore, we
    * have an obligation of forwarding this message to leader, so the sender