summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Fernandes <josferna@redhat.com>2015-11-26 14:33:14 +0530
committerDan Lambright <dlambrig@redhat.com>2015-12-11 04:27:45 -0800
commit3de606533048a4aa42545eef19dfefc23315c67f (patch)
tree44e47098bcd456aae7d1ea13121fda4bbeb331a2
parent9f35fcf087d5c30d460999d667b1b82dfd08d762 (diff)
tier/ctr: Check filename in ctr_lookup for nameless lookup
Check filename in ctr_lookup for nameless lookup Backport of http://review.gluster.org/12760 > Change-Id: I1ab3f658e3b9fee708f6986d1990f16db920d2fb > BUG: 1285663 > Signed-off-by: Joseph Fernandes <josferna@redhat.com> > Reviewed-on: http://review.gluster.org/12760 > Tested-by: Gluster Build System <jenkins@build.gluster.com> > Reviewed-by: Dan Lambright <dlambrig@redhat.com> > Tested-by: Dan Lambright <dlambrig@redhat.com> Signed-off-by: Joseph Fernandes <josferna@redhat.com> Change-Id: I2dccf8fe556c42623dc0aa89459dd2aa2a038380 BUG: 1290295 Reviewed-on: http://review.gluster.org/12935 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
-rw-r--r--xlators/features/changetimerecorder/src/changetimerecorder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/changetimerecorder/src/changetimerecorder.c b/xlators/features/changetimerecorder/src/changetimerecorder.c
index a230b2fc4ba..04cd3145d95 100644
--- a/xlators/features/changetimerecorder/src/changetimerecorder.c
+++ b/xlators/features/changetimerecorder/src/changetimerecorder.c
@@ -329,7 +329,7 @@ ctr_lookup (call_frame_t *frame, xlator_t *this,
GF_ASSERT(frame->root);
/* Dont handle nameless lookups*/
- if (!loc->parent)
+ if (!loc->parent || !loc->name)
goto out;
/*fill ctr link context*/