summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-08-29 22:17:53 +0000
committerpjd <pjd@FreeBSD.org>2010-08-29 22:17:53 +0000
commit39e5544fc330728708430aede1ee74f258f01993 (patch)
tree86e7f65dc982e69c08e4376aaec9094f91127a0b /sbin/hastd
parent1d4a51dd2dff0160ffbc290b08ab4e9f38368294 (diff)
downloadFreeBSD-src-39e5544fc330728708430aede1ee74f258f01993.zip
FreeBSD-src-39e5544fc330728708430aede1ee74f258f01993.tar.gz
Disconnect after logging errors.
MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin/hastd')
-rw-r--r--sbin/hastd/primary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index f0b8423..e8d8185 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -1234,12 +1234,12 @@ remote_send_thread(void *arg)
data != NULL ? length : 0) < 0) {
hio->hio_errors[ncomp] = errno;
rw_unlock(&hio_remote_lock[ncomp]);
- remote_close(res, ncomp);
pjdlog_debug(2,
"remote_send: (%p) Unable to send request.", hio);
reqlog(LOG_ERR, 0, ggio,
"Unable to send request (%s): ",
strerror(hio->hio_errors[ncomp]));
+ remote_close(res, ncomp);
/*
* Take request back from the receive queue and move
* it immediately to the done queue.
OpenPOWER on IntegriCloud