Author: trociny
Date: Sun May 29 21:20:47 2011
New Revision: 222467
URL: http://svn.freebsd.org/changeset/base/222467

Log:
  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

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c   Sun May 29 21:13:53 2011        (r222466)
+++ head/sbin/hastd/primary.c   Sun May 29 21:20:47 2011        (r222467)
@@ -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.
                                 */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to