diff options
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 14805c2c007..84dbcc04680 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -135,6 +135,7 @@ reconfigure (xlator_t *this, dict_t *options) char *qtype = NULL; char *fav_child_policy = NULL; gf_boolean_t consistent_io = _gf_false; + gf_boolean_t choose_local_old = _gf_false; priv = this->private; @@ -202,6 +203,16 @@ reconfigure (xlator_t *this, dict_t *options) GF_OPTION_RECONF ("read-subvolume", read_subvol, options, xlator, out); + choose_local_old = priv->choose_local; + GF_OPTION_RECONF ("choose-local", priv->choose_local, options, bool, + out); + + if (choose_local_old != priv->choose_local) { + priv->read_child = -1; + if (choose_local_old == _gf_false) + priv->did_discovery = _gf_false; + } + GF_OPTION_RECONF ("read-hash-mode", priv->hash_mode, options, uint32, out); |