Date: Wed, 20 Apr 2011 18:43:28 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd hastd.c primary.c Message-ID: <201104201843.p3KIhd0I052760@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2011-04-20 18:43:28 UTC FreeBSD src repository Modified files: sbin/hastd hastd.c primary.c Log: SVN rev 220898 on 2011-04-20 18:43:28Z by pjd When we become primary, we connect to the remote and expect it to be in secondary role. It is possible that the remote node is primary, but only because there was a role change and it didn't finish cleaning up (unmounting file systems, etc.). If we detect such situation, wait for the remote node to switch the role to secondary before accepting I/Os. If we don't wait for it in that case, we will most likely cause split-brain. MFC after: 1 week Revision Changes Path 1.49 +7 -0 src/sbin/hastd/hastd.c 1.71 +49 -13 src/sbin/hastd/primary.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104201843.p3KIhd0I052760>