libceph: clear messenger auth_retry flag when we authenticate
authorSage Weil <sage@inktank.com>
Mon, 25 Mar 2013 16:30:13 +0000 (09:30 -0700)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:11 +0000 (21:17 -0700)
commit20e55c4cc758e4dccdfd92ae8e9588dd624b2cd7
tree8e8392734f7553ecf4083703d30c27249d50c0b9
parent3a23083bda56850a1dc0e1c6d270b1f5dc789f07
libceph: clear messenger auth_retry flag when we authenticate

We maintain a counter of failed auth attempts to allow us to retry once
before failing.  However, if the second attempt succeeds, the flag isn't
cleared, which makes us think auth failed again later when the connection
resets for other reasons (like a socket error).

This is one part of the sorry sequence of events in bug

http://tracker.ceph.com/issues/4282

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
net/ceph/messenger.c