From owner-cvs-src-old@FreeBSD.ORG Sun Oct 24 17:28:45 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C2F91065780 for ; Sun, 24 Oct 2010 17:28:45 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 49B3F8FC1A for ; Sun, 24 Oct 2010 17:28:45 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9OHSj0n097958 for ; Sun, 24 Oct 2010 17:28:45 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9OHSjRT097957 for cvs-src-old@freebsd.org; Sun, 24 Oct 2010 17:28:45 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201010241728.o9OHSjRT097957@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Sun, 24 Oct 2010 17:28:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/hastd primary.c secondary.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2010 17:28:45 -0000 pjd 2010-10-24 17:28:25 UTC FreeBSD src repository Modified files: sbin/hastd primary.c secondary.c Log: SVN rev 214284 on 2010-10-24 17:28:25Z by pjd Before this change on first connect between primary and secondary we initialize all the data. This is huge waste of time and resources if there were no writes yet, as there is no real data to synchronize. Optimize this by sending "virgin" argument to secondary, which gives it a hint that synchronization is not needed. In the common case (where noth nodes are configured at the same time) instead of synchronizing everything, we don't synchronize at all. MFC after: 1 week Revision Changes Path 1.38 +40 -3 src/sbin/hastd/primary.c 1.19 +11 -2 src/sbin/hastd/secondary.c