]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
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>
Mon, 25 Mar 2013 16:30:13 +0000 (09:30 -0700)
commit31723a4aa0bcd51a16015fe274c15b481aa76c70
tree02f17e598407bf7af68ef1a4222d537e939d43a3
parenta66ad08866f7f4f73f120b88b99b0d89c863f44f
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