diff options
author | trociny <trociny@FreeBSD.org> | 2011-05-29 21:20:47 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2011-05-29 21:20:47 +0000 |
commit | e74ba5594f54560cb68f160f87acc43cd26de8a1 (patch) | |
tree | 623103162070e9fc38346b1cc059a001a7dcab2e /sbin/hastd | |
parent | 7c714099c7a70ba36bc634e3f0d0dfa0227f4ebe (diff) | |
download | FreeBSD-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.c | 2 |
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. */ |