diff options
author | Csaba Henk <csaba@gluster.com> | 2011-04-11 04:09:15 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-11 03:52:25 -0700 |
commit | dd3cc7d398c3b4432097b7cc2716e2afec9a8e47 (patch) | |
tree | 9e42ec5f33deed5ba1785e432a17eaa0e90a81bd /.gitignore | |
parent | b003ee6e9e8316a59a1de204f727748e442ef0af (diff) |
syncdaemon: fix setting None as new master
We checked for the event of a new master being adopted by:
- checking for state change in list of masters
- checking if our chosen master is a foreign one
and if these held, then wrote out the actually available master to config
However this was flaky: if
(1) native master changed
(2) there was already a foreign master adopted
(3) actually the master was not available
then we wrote out the None to config.
This could occur if:
- on syncd startup, native master just changes from None to the volume native
[implies (1)]
- foreign master adopted from earlier run via config [implies (2)]
- actually foreign master was not available [implies (3)]
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2670 (strange behaviour with intermediate-master and slave)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2670
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions