diff options
author | Venky Shankar <vshankar@redhat.com> | 2013-07-23 17:02:30 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-07-24 10:41:30 -0700 |
commit | aa04928a16858e70e6e87f2734e62b141de6f20e (patch) | |
tree | f6b144ebdea43f4b721b61a27e7853f18db344b5 | |
parent | a496f0fd94276822169ff8ea9f961ac2dba7984a (diff) |
features/marker: pass xdata in marker_unlink()
Change-Id: Ia310af96b25f29351f3adc4bbc97aea271df7673
BUG: 987747
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Reviewed-on: http://review.gluster.org/5379
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r-- | xlators/features/marker/src/marker.c | 6 | ||||
-rw-r--r-- | xlators/features/marker/src/marker.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 112e71dff31..3325d8af397 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -185,6 +185,8 @@ marker_local_unref (marker_local_t *local) loc_wipe (&local->loc); loc_wipe (&local->parent_loc); + if (local->xdata) + dict_unref (local->xdata); if (local->oplocal) { marker_local_unref (local->oplocal); @@ -833,7 +835,7 @@ marker_unlink_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this, STACK_WIND (frame, marker_unlink_cbk, FIRST_CHILD(this), FIRST_CHILD(this)->fops->unlink, &local->loc, local->xflag, - NULL); + local->xdata); return 0; err: frame->local = NULL; @@ -858,6 +860,8 @@ marker_unlink (call_frame_t *frame, xlator_t *this, loc_t *loc, int xflag, local = mem_get0 (this->local_pool); local->xflag = xflag; + if (xdata) + local->xdata = dict_ref (xdata); MARKER_INIT_LOCAL (frame, local); ret = loc_copy (&local->loc, loc); diff --git a/xlators/features/marker/src/marker.h b/xlators/features/marker/src/marker.h index 63491ab3709..2f1feeee6b5 100644 --- a/xlators/features/marker/src/marker.h +++ b/xlators/features/marker/src/marker.h @@ -110,6 +110,7 @@ struct marker_local{ inode_contribution_t *contri; int xflag; + dict_t *xdata; }; typedef struct marker_local marker_local_t; |