diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-27 14:26:37 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-27 14:26:37 +0000 |
commit | ead19aaef1acf3ba476246765d4d409eba5c3c02 (patch) | |
tree | 2938d5286dc8ce260b3a171cb3a8c8ed2f970e44 /sbin/hastd/hast.h | |
parent | 8729a28322f63b97a52f73de5cc9f822a1645b51 (diff) | |
download | FreeBSD-src-ead19aaef1acf3ba476246765d4d409eba5c3c02.zip FreeBSD-src-ead19aaef1acf3ba476246765d4d409eba5c3c02.tar.gz |
Implement keepalive mechanism inside HAST protocol so we can detect secondary
node failures quickly for HAST resources that are rarely modified.
Remove XXX from a comment now that the guard thread never sleeps infinitely.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin/hastd/hast.h')
-rw-r--r-- | sbin/hastd/hast.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/hastd/hast.h b/sbin/hastd/hast.h index fda62c0..1f3b386 100644 --- a/sbin/hastd/hast.h +++ b/sbin/hastd/hast.h @@ -48,7 +48,12 @@ #include "proto.h" -#define HAST_PROTO_VERSION 0 +/* + * Version history: + * 0 - initial version + * 1 - HIO_KEEPALIVE added + */ +#define HAST_PROTO_VERSION 1 #define EHAST_OK 0 #define EHAST_NOENTRY 1 @@ -74,6 +79,7 @@ #define HIO_WRITE 2 #define HIO_DELETE 3 #define HIO_FLUSH 4 +#define HIO_KEEPALIVE 5 #define HAST_TIMEOUT 5 #define HAST_CONFIG "/etc/hast.conf" |