From d396d358d4f0cfe87693179cfd13eb2a84ce62c2 Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Fri, 11 Aug 2017 17:50:52 +0530 Subject: uss/svc: Send the first lookup to the normal graph When parent inode is not looked up before, the inode type won't be set. In this scenario we should send the lookup to the normal graph first. Change-Id: I5d3e53f5c1c33a17be32204f3114749d9b1e6db8 BUG: 1480591 Signed-off-by: Mohammed Rafi KC Reviewed-on: https://review.gluster.org/18028 Smoke: Gluster Build System Reviewed-by: Raghavendra Bhat CentOS-regression: Gluster Build System Reviewed-by: soumya k --- xlators/features/snapview-client/src/snapview-client.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'xlators/features/snapview-client/src/snapview-client.c') diff --git a/xlators/features/snapview-client/src/snapview-client.c b/xlators/features/snapview-client/src/snapview-client.c index dafd3d356f4..d9bd56814bf 100644 --- a/xlators/features/snapview-client/src/snapview-client.c +++ b/xlators/features/snapview-client/src/snapview-client.c @@ -414,13 +414,16 @@ gf_svc_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata) } if (strcmp (loc->name, priv->path)) { - if (parent_type == NORMAL_INODE) { - subvolume = FIRST_CHILD (this); - local->subvolume = subvolume; - } else { + if (parent_type == VIRTUAL_INODE) { subvolume = SECOND_CHILD (this); - local->subvolume = subvolume; + } else { + /* + * Either parent type is normal graph, or the parent + * type is uncertain. + */ + subvolume = FIRST_CHILD (this); } + local->subvolume = subvolume; } else { subvolume = SECOND_CHILD (this); local->subvolume = subvolume; -- cgit