summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-03-11 05:02:15 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-22 04:20:21 -0700
commita4233a41bf6a2f9ddbce15a530b1678c55ba24a5 (patch)
treed73519669b6f54d0550c05f89082d07e5b4d7295 /xlators/cluster/afr/src/afr-self-heal-common.c
parente115072f4b654d407fcf435256334645ab471776 (diff)
cluster/afr: skip openfd flush when the file is already deleted
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2497 (client crashes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2497
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index 30f0cbe09da..16e051c6ff9 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -1559,6 +1559,8 @@ afr_self_heal (call_frame_t *frame, xlator_t *this)
local = frame->local;
priv = this->private;
+ GF_ASSERT (local->loc.path);
+
afr_set_lk_owner (frame, this);
if (local->self_heal.background) {