From owner-svn-src-all@FreeBSD.ORG Sun May 29 21:20:48 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EFA61065675; Sun, 29 May 2011 21:20:48 +0000 (UTC) (envelope-from trociny@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0FCC08FC14; Sun, 29 May 2011 21:20:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4TLKl9W047126; Sun, 29 May 2011 21:20:47 GMT (envelope-from trociny@svn.freebsd.org) Received: (from trociny@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4TLKlTx047124; Sun, 29 May 2011 21:20:47 GMT (envelope-from trociny@svn.freebsd.org) Message-Id: <201105292120.p4TLKlTx047124@svn.freebsd.org> From: Mikolaj Golub Date: Sun, 29 May 2011 21:20:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222467 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2011 21:20:48 -0000 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. */