aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd/secondary.c
diff options
context:
space:
mode:
authorMikolaj Golub <trociny@FreeBSD.org>2011-06-17 07:07:26 +0000
committerMikolaj Golub <trociny@FreeBSD.org>2011-06-17 07:07:26 +0000
commitba2a822490c1ac6e94ec4296eeac09a1a3be2d59 (patch)
treea329b8b3a0336533b3415843ff12b9932c959bd8 /sbin/hastd/secondary.c
parentbb2c20c1a876f040fb7461d8cfc56f9ff803a690 (diff)
downloadsrc-ba2a822490c1ac6e94ec4296eeac09a1a3be2d59.tar.gz
src-ba2a822490c1ac6e94ec4296eeac09a1a3be2d59.zip
Notes
Diffstat (limited to 'sbin/hastd/secondary.c')
-rw-r--r--sbin/hastd/secondary.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c
index 1597af83a85d..7120d3da3832 100644
--- a/sbin/hastd/secondary.c
+++ b/sbin/hastd/secondary.c
@@ -183,9 +183,11 @@ init_remote(struct hast_resource *res, struct nv *nvin)
unsigned char *map;
size_t mapsize;
+#ifdef notyet
/* Setup direction. */
if (proto_send(res->hr_remoteout, NULL, 0) == -1)
pjdlog_errno(LOG_WARNING, "Unable to set connection direction");
+#endif
map = NULL;
mapsize = 0;
@@ -351,9 +353,11 @@ init_remote(struct hast_resource *res, struct nv *nvin)
if (map != NULL)
free(map);
nv_free(nvout);
+#ifdef notyet
/* Setup direction. */
if (proto_recv(res->hr_remotein, NULL, 0) == -1)
pjdlog_errno(LOG_WARNING, "Unable to set connection direction");
+#endif
if (res->hr_secondary_localcnt > res->hr_primary_remotecnt &&
res->hr_primary_localcnt > res->hr_secondary_remotecnt) {
/* Exit on split-brain. */