From owner-svn-src-all@FreeBSD.ORG Wed Apr 20 16:38:05 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 7D363106564A; Wed, 20 Apr 2011 16:38:05 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6DCD38FC15; Wed, 20 Apr 2011 16:38:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3KGc5Ks056486; Wed, 20 Apr 2011 16:38:05 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3KGc5ro056484; Wed, 20 Apr 2011 16:38:05 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201104201638.p3KGc5ro056484@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 20 Apr 2011 16:38:05 +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: r220890 - 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: Wed, 20 Apr 2011 16:38:05 -0000 Author: pjd Date: Wed Apr 20 16:38:05 2011 New Revision: 220890 URL: http://svn.freebsd.org/changeset/base/220890 Log: If we act in different role than requested by the remote node, log it as a warning and not an error. MFC after: 1 week Modified: head/sbin/hastd/hastd.c Modified: head/sbin/hastd/hastd.c ============================================================================== --- head/sbin/hastd/hastd.c Wed Apr 20 16:36:59 2011 (r220889) +++ head/sbin/hastd/hastd.c Wed Apr 20 16:38:05 2011 (r220890) @@ -730,7 +730,7 @@ listen_accept(void) } /* Is the resource marked as secondary? */ if (res->hr_role != HAST_ROLE_SECONDARY) { - pjdlog_error("We act as %s for the resource and not as %s as requested by %s.", + pjdlog_warning("We act as %s for the resource and not as %s as requested by %s.", role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY), raddr); nv_add_stringf(nverr, "errmsg",