Date: Tue, 19 Apr 2011 19:26:27 +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: <201104191926.p3JJQe0o051735@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2011-04-19 19:26:27 UTC FreeBSD src repository Modified files: sbin/hastd primary.c secondary.c Log: SVN rev 220865 on 2011-04-19 19:26:27Z by pjd Scenario: - We have two nodes connected and synchronized (local counters on both sides are 0). - We take secondary down and recreate it. - Primary connects to it and starts synchronization (but local counters are still 0). - We switch the roles. - Synchronization restarts but data is synchronized now from new primary (because local counters are 0) that doesn't have new data yet. This fix this issue we bump local counter on primary when we discover that connected secondary was recreated and has no data yet. Reported by: trociny Discussed with: trociny Tested by: trociny MFC after: 1 week Revision Changes Path 1.70 +19 -0 src/sbin/hastd/primary.c 1.38 +1 -0 src/sbin/hastd/secondary.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104191926.p3JJQe0o051735>