From bc453a0075c1305be18cc64440e35a86624daed4 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Oct 2018 05:47:23 -0400 Subject: 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 fixes: bz#1644474 Signed-off-by: Soumya Koduri --- xlators/cluster/afr/src/afr-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 10e4e975dd2..8c89a733071 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -4755,7 +4755,7 @@ afr_lease_cbk (call_frame_t *frame, void *cookie, xlator_t *this, 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); -- cgit