svn commit: r222467 - head/sbin/hastd

Mikolaj Golub trociny at FreeBSD.org
Sun May 29 21:20:48 UTC 2011


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.
 				 */


More information about the svn-src-all mailing list