diff options
author | Vikas Gorur <vikas@gluster.com> | 2010-01-07 05:17:17 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-01-08 03:51:18 -0800 |
commit | 3adb7082c63d28950aca21718be84b65806e5d6e (patch) | |
tree | 0e6a735f88d3912a0e088eb7d4eeb38e5de2c203 /xlators | |
parent | 90d18c74defcc11ee4b31c49d2700f96c18016e9 (diff) |
cluster/afr: Use dict_ref instead of dict_copy_with_ref.
Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 509 (Crash in afr_local_cleanup ())
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=509
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 4 |
1 files 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; } |