glusterd: Reset opinfo.op ONLY if lock succeeded
Change-Id: I0244a7f61a826b32f4c2dfe51e246f2593a38211 BUG: 1060434 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/6885 Reviewed-by: Kaushal M <kaushal@redhat.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
parent
ab80504486
commit
797c62eb56
@ -1099,9 +1099,11 @@ gd_unlock_op_phase (struct list_head *peers, glusterd_op_t op, int op_ret,
|
||||
|
||||
out:
|
||||
glusterd_op_send_cli_response (op, op_ret, 0, req, op_ctx, op_errstr);
|
||||
/* Unlock and reset opinfo.op ONLY if lock ever succeeded! */
|
||||
if (is_locked) {
|
||||
glusterd_op_clear_op (op);
|
||||
if (is_locked)
|
||||
glusterd_unlock (MY_UUID);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user