]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async: updating l_msgr_running_send_time if write_message failed.
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 25 Oct 2017 16:50:29 +0000 (00:50 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 25 Oct 2017 16:50:29 +0000 (00:50 +0800)
commit1a6817a507864c92579f3e90f2cb3b19f6e7ee94
tree7290687794490f83b301cc966e20056acfa82ebb
parent3350b3504542196cadfa33d9592cca93463d3d1b
msg/async: updating l_msgr_running_send_time if write_message failed.

Also for the most time write_message return zero. So avoid checking
"r < 0 or r > 0" every time, it should firstly check "r == 0".

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/msg/async/AsyncConnection.cc