Zach Brown b5133bfc98 scoutfs: add elected flag to quorum block
It was a mistake to use a non-zero elected_nr as the indication that a
slot is considered actively elected.  Zeroing it as the server shuts
down wipes the elected_nr and means that it doesn't advance as each
server is elected.  This then causes a client connecting to a new server
to be confused for a client reconnecting to a server after the server
has timed it out and destroyed its state.  This caused reconnection
after shutting down a server to fail and clients to loop reconnecting
indefinitely.

This instead adds flags to the quorum block and assigns a flag to
indicate that the slot should be considered active.  It's cleared by
fencing and by the client as the server shuts down.

Signed-off-by: Zach Brown <zab@versity.com>
2019-04-12 10:54:07 -07:00
Description
No description provided
8 MiB
Languages
C 87%
Shell 9.3%
Roff 2.5%
TeX 0.8%
Makefile 0.4%