summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2011-05-29 21:20:47 +0000
committertrociny <trociny@FreeBSD.org>2011-05-29 21:20:47 +0000
commite74ba5594f54560cb68f160f87acc43cd26de8a1 (patch)
tree623103162070e9fc38346b1cc059a001a7dcab2e /sbin/hastd
parent7c714099c7a70ba36bc634e3f0d0dfa0227f4ebe (diff)
downloadFreeBSD-src-e74ba5594f54560cb68f160f87acc43cd26de8a1.zip
FreeBSD-src-e74ba5594f54560cb68f160f87acc43cd26de8a1.tar.gz
If READ from the local node failed we send the request to the remote
node. There is no use in doing this for synchronization requests. Approved by: pjd (mentor) MFC after: 1 week
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 1f6585c..abda5cb 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -1243,7 +1243,7 @@ local_send_thread(void *arg)
ggio->gctl_offset + res->hr_localoff);
if (ret == ggio->gctl_length)
hio->hio_errors[ncomp] = 0;
- else {
+ else if (!ISSYNCREQ(hio)) {
/*
* If READ failed, try to read from remote node.
*/
OpenPOWER on IntegriCloud