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>
This commit is contained in:
root 2018-10-25 05:47:23 -04:00 committed by Ravishankar N
parent 0e7929ef02
commit ace454cf40

View File

@ -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);