]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/ProtocolV2: clear dispatch throttle on connection stop 24546/head
authorSage Weil <sage@redhat.com>
Sun, 27 Jan 2019 16:10:49 +0000 (10:10 -0600)
committerSage Weil <sage@redhat.com>
Sun, 27 Jan 2019 16:11:03 +0000 (10:11 -0600)
This aligns us with the ProtocolV1 implementation.

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/ProtocolV2.cc

index a7381ff325cf71c30700003a35e1c1401d2ebf19..b7d413e84788897d36d330a01ca50571c308cb88 100644 (file)
@@ -515,6 +515,7 @@ void ProtocolV2::stop() {
 
   std::lock_guard<std::mutex> l(connection->write_lock);
 
+  reset_recv_state();
   discard_out_queue();
 
   connection->_stop();