Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Oct 2010 17:28:25 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/hastd primary.c secondary.c
Message-ID:  <201010241728.o9OHSjRT097957@repoman.freebsd.org>

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



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