summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr
diff options
context:
space:
mode:
authorroot <root@rhs-srv-17.storage-dev.lab.eng.bos.redhat.com>2018-10-25 05:47:23 -0400
committerRavishankar N <ravishankar@redhat.com>2018-10-25 16:14:56 +0000
commitace454cf407753625acc2d4d090cb529bd13b183 (patch)
treee7dd87df03b6bbdd2e2914e6ac3cf7d235d23305 /xlators/cluster/afr
parent0e7929ef0272a95e5d24a23f15de3a0bb88a094c (diff)
afr/lease: Read child nodes from lease structure
For lease operation, we allocate and store child nodes data in lease structure. Use the same in afr_lease_cbk() while checking for the quorum. Change-Id: If1fdd5a0798888afd39ad3df57d96487baf9d1e6 updates: #350 Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r--xlators/cluster/afr/src/afr-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 47120503980..3a62df34aef 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -4654,7 +4654,7 @@ afr_lease_cbk(call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret,
priv->children[child_index]->fops->lease, &local->loc,
&local->cont.lease.user_lease, xdata);
} else if (priv->quorum_count &&
- !afr_has_quorum(local->cont.lk.locked_nodes, this)) {
+ !afr_has_quorum(local->cont.lease.locked_nodes, this)) {
local->op_ret = -1;
local->op_errno = afr_final_errno(local, priv);