]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
AsyncConnection: Don't dispatch event when connection is stopped
authorHaomai Wang <haomaiwang@gmail.com>
Tue, 5 May 2015 05:53:23 +0000 (13:53 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Tue, 5 May 2015 05:53:23 +0000 (13:53 +0800)
commitc26b21fa7981b050dbd10b5f82832100a69f9db0
tree2abfc51c0ed5a8063ee3f302db023ea3f1a95983
parentf76293cedb3951e22a2e614247010782cb60ebb2
AsyncConnection: Don't dispatch event when connection is stopped

When marking down connection, previously we will call stop which will dispatch event
regardless of the staus of the connection. If this connection is already down and
its events all has cleaned, we will hit NULL event.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/AsyncConnection.h
src/msg/async/AsyncMessenger.cc