diff options
author | Alex Elder <elder@inktank.com> | 2012-05-23 14:35:23 -0500 |
---|---|---|
committer | Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com> | 2012-11-20 14:27:23 -0200 |
commit | 81bae66ddb16b0037c03c111f384a2352c4d84de (patch) | |
tree | 3d3b8362e2f0dd3815a94f7e44636ecf5c0cd14a /include/linux | |
parent | 99b3f60a8bbbada2597dd983a068635042b28b4f (diff) |
libceph: define and use an explicit CONNECTED state
commit e27947c767f5bed15048f4e4dad3e2eb69133697 upstream.
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>
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ceph/messenger.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index f624b752e823..6a00acc61d47 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h @@ -120,6 +120,7 @@ struct ceph_msg_pos { */ #define CONNECTING 1 #define NEGOTIATING 2 +#define CONNECTED 5 #define STANDBY 8 /* no outgoing messages, socket closed. we keep * the ceph_connection around to maintain shared * state with the peer. */ |