From 3adb7082c63d28950aca21718be84b65806e5d6e Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Thu, 7 Jan 2010 05:17:17 +0000 Subject: cluster/afr: Use dict_ref instead of dict_copy_with_ref. Signed-off-by: Vikas Gorur Signed-off-by: Anand V. Avati BUG: 509 (Crash in afr_local_cleanup ()) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=509 --- xlators/cluster/afr/src/afr-self-heal-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index fe48660c071..4480140b57c 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -1445,12 +1445,12 @@ afr_local_t *afr_local_copy (afr_local_t *l, xlator_t *this) lc->child_up = memdup (l->child_up, priv->child_count); if (l->xattr_req) - lc->xattr_req = dict_copy_with_ref (l->xattr_req, NULL); + lc->xattr_req = dict_ref (l->xattr_req); if (l->cont.lookup.inode) lc->cont.lookup.inode = inode_ref (l->cont.lookup.inode); if (l->cont.lookup.xattr) - lc->cont.lookup.xattr = dict_copy_with_ref (l->cont.lookup.xattr, NULL); + lc->cont.lookup.xattr = dict_ref (l->cont.lookup.xattr); return lc; } -- cgit