Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2011 21:20:47 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222467 - head/sbin/hastd
Message-ID:  <201105292120.p4TLKlTx047124@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.
 				 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105292120.p4TLKlTx047124>