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-11-08 14:31:00 +0000
commit7072841fbd82fc14c48ced8eba18ee6626632660 (patch)
tree78a3923e41033a3e117945bf1f2152c592248af8
parentdc775c4ae052d1e9d0f61ace3be999f73f0ffa23 (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>
-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 0fdbde42779..51d611d503a 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);