From 9ec821f9e67848b3527f6b7dc776cb9ba440610b Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Thu, 16 Aug 2018 17:28:54 +0530 Subject: afr: common thin-arbiter functions ...that can be used by client and self-heal daemon, namely: afr_ta_post_op_lock() afr_ta_post_op_unlock() Note: These are not yet consumed. They will be used in the write txn changes patch which will introduce 2 domain locking. updates: bz#1579788 Change-Id: I636d50f8fde00736665060e8f9ee4510d5f38795 Signed-off-by: Ravishankar N --- xlators/cluster/afr/src/afr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/cluster/afr/src/afr.c') diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 0e86e33d03b..dac714d5d2c 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -410,6 +410,8 @@ init (xlator_t *this) if (thin_arbiter && strlen(thin_arbiter) > 0) { priv->thin_arbiter_count = 1; priv->child_count--; + priv->ta_bad_child_index = AFR_CHILD_UNKNOWN; + priv->ta_notify_dom_lock_offset = 0; } INIT_LIST_HEAD (&priv->healing); INIT_LIST_HEAD (&priv->heal_waiting); -- cgit