From 3e1dbb49624f4dc430e0c6e7f4626bdf6f84120b Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Fri, 10 Apr 2015 15:54:27 +0530 Subject: libglusterfs/syncop: Pass xdata even in error case xdata should be passed even in error cases. lookup() call was missed in previous patch set. Change-Id: I1ad2c452d05a3b4433b640762aaea5d3a91f2ba5 BUG: 1209869 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/10193 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi Reviewed-by: Vijay Bellur --- libglusterfs/src/syncop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index ccb4444e610..20d4d00561c 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -1102,12 +1102,12 @@ syncop_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, args->op_ret = op_ret; args->op_errno = op_errno; + if (xdata) + args->xdata = dict_ref (xdata); if (op_ret == 0) { args->iatt1 = *iatt; args->iatt2 = *parent; - if (xdata) - args->xdata = dict_ref (xdata); } __wake (args); -- cgit