]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
AsyncConnection: fix incorrect condition for exchanging in_seq 3665/head
authorHaomai Wang <haomaiwang@gmail.com>
Sun, 8 Feb 2015 07:47:39 +0000 (15:47 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Sun, 8 Feb 2015 08:01:43 +0000 (16:01 +0800)
commitd2eaeea081a729f9c5b4fb0386c717a21becdb1d
tree7b52da06999badb62b604c8b40d6b260450db8a1
parentf9114114dc05b0b371fa3d4b87516f1bebf08216
AsyncConnection: fix incorrect condition for exchanging in_seq

Originally we use "in_seq==0" to judge whether need to exchange in_seq,
it's wrong when peer side already receive message and need to reply new
in_seq to this side.

Now use "is_reset_from_peer" to indicate whether not need to exchange

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