diff options
author | Ravishankar N <ravishankar@redhat.com> | 2018-08-16 17:28:54 +0530 |
---|---|---|
committer | Ravishankar N <ravishankar@redhat.com> | 2018-08-23 06:37:27 +0000 |
commit | 9ec821f9e67848b3527f6b7dc776cb9ba440610b (patch) | |
tree | 335c94f8daf40e255eaaf5ff3d7d532cec8b04fd /xlators/cluster/afr/src/afr.c | |
parent | 94cac2562ff32104d2cd6325396e55cae16ec743 (diff) |
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 <ravishankar@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr.c')
-rw-r--r-- | xlators/cluster/afr/src/afr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |