]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: restart_queue when replacing existing pipe and taking over the queue
authorSage Weil <sage@inktank.com>
Mon, 2 Jul 2012 00:23:28 +0000 (17:23 -0700)
committerSage Weil <sage@inktank.com>
Tue, 3 Jul 2012 00:54:00 +0000 (17:54 -0700)
The queue may have been previously stopped (by discard_queue()), and needs
to be restarted.

Fixes consistent failures from the mon_recovery.py integration tests.

Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/SimpleMessenger.cc

index 06f0bc84950bf3c731878d8f15654cbe7b348bae..53e36cd7ef2d836d85d5158435fb6e3decd68e39 100644 (file)
@@ -860,6 +860,7 @@ int SimpleMessenger::Pipe::accept()
     in_q = existing->in_q;
     in_q->lock.Lock();
     in_q->pipe = this;
+    in_q->restart_queue();
     in_q->lock.Unlock();
     existing->in_q = new IncomingQueue(msgr->cct, existing);