summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorRaghavendra Talur <rtalur@redhat.com>2015-04-10 15:54:27 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-27 00:09:49 -0700
commit3e1dbb49624f4dc430e0c6e7f4626bdf6f84120b (patch)
treea185f5e5c951e32722ad8ff0275a47d87e695207 /libglusterfs
parenta1de3b05b3fd7514dbce5182c371c6be97819969 (diff)
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 <rtalur@redhat.com> Reviewed-on: http://review.gluster.org/10193 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/syncop.c4
1 files 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);