From a01a750f32478ae0881fb44a76ada334e2692477 Mon Sep 17 00:00:00 2001 From: Mikolaj Golub Date: Sun, 29 May 2011 21:20:47 +0000 Subject: [PATCH] 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 --- sbin/hastd/primary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 1f6585c87a1a..abda5cb33351 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. */