summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@rhs-srv-17.storage-dev.lab.eng.bos.redhat.com>2018-10-25 05:47:23 -0400
committerShyamsundar Ranganathan <srangana@redhat.com>2018-10-31 00:31:24 +0000
commitbc453a0075c1305be18cc64440e35a86624daed4 (patch)
treedd5973a761339ee87859341061ac7355581e7c48
parent00478edb01e271407186ea288e40f7b77b2eaa66 (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 fixes: bz#1644474 Signed-off-by: Soumya Koduri <skoduri@redhat.com>
-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 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);