summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-12-13 05:31:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-27 20:50:25 -0800
commitef27058512773a76853e3c6c715465f87da2b13a (patch)
treea3c31776496a1766cd2d5e57eaa0d5a53e5aa8e4
parentf190be2ea2793b6a9be51fef1043224b477986dd (diff)
Remove check for path in stripe_local_wipe
The check for path is done in loc_wipe. During loc_copy, inode ref is taken before path set succeeds or fails. Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2134 (inode leaks on stripe) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2134
-rw-r--r--xlators/cluster/stripe/src/stripe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index ddef10b77ee..3f3c05a3e56 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -41,10 +41,8 @@ stripe_local_wipe (stripe_local_t *local)
if (!local)
goto out;
- if (local->loc.path)
- loc_wipe (&local->loc);
- if (local->loc2.path)
- loc_wipe (&local->loc2);
+ loc_wipe (&local->loc);
+ loc_wipe (&local->loc2);
out:
return;
}