diff options
author | Alex Elder | 2012-05-24 11:55:03 -0500 |
---|---|---|
committer | Sage Weil | 2012-07-05 21:14:30 -0700 |
commit | 7593af920baac37752190a0db703d2732bed4a3b (patch) | |
tree | f660bc222db9b74305b8a2b8cc25d508bd0596a5 /net/can | |
parent | ab166d5aa3bc036fba7efaca6e4e43a7e9510acf (diff) |
libceph: distinguish two phases of connect sequence
Currently a ceph connection enters a "CONNECTING" state when it
begins the process of (re-)connecting with its peer. Once the two
ends have successfully exchanged their banner and addresses, an
additional NEGOTIATING bit is set in the ceph connection's state to
indicate the connection information exhange has begun. The
CONNECTING bit/state continues to be set during this phase.
Rather than have the CONNECTING state continue while the NEGOTIATING
bit is set, interpret these two phases as distinct states. In other
words, when NEGOTIATING is set, clear CONNECTING. That way only
one of them will be active at a time.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions