commit | e27947c767f5bed15048f4e4dad3e2eb69133697 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Wed May 23 14:35:23 2012 -0500 |
committer | Sage Weil <sage@inktank.com> | Thu Jul 05 21:14:27 2012 -0700 |
tree | 7521d46e58b360930d95f7eeb86396d4f729db57 | |
parent | 3ec50d1868a9e0493046400bb1fdd054c7f64ebd [diff] |
libceph: define and use an explicit CONNECTED state There is no state explicitly defined when a ceph connection is fully operational. So define one. It's set when the connection sequence completes successfully, and is cleared when the connection gets closed. Be a little more careful when examining the old state when a socket disconnect event is reported. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>