summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-resolve.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-06-13 11:45:53 +0530
committerVijay Bellur <vbellur@redhat.com>2015-03-08 08:24:39 -0700
commita25cdf135f01ebeb64a4497df1bb5146bfdc6620 (patch)
tree2e97626b7b00da7865514de86b1d712e7c372580 /xlators/protocol/server/src/server-resolve.c
parentadef0c8860f57c8137382d848244009e9a584497 (diff)
Use common loc-touchup in fuse/server/gfapi
Change-Id: Id41fb29480bb6d22c34469339163da05b98c1a98 BUG: 1115907 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/8226 Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/protocol/server/src/server-resolve.c')
-rw-r--r--xlators/protocol/server/src/server-resolve.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c
index 3b787c61734..9528259970a 100644
--- a/xlators/protocol/server/src/server-resolve.c
+++ b/xlators/protocol/server/src/server-resolve.c
@@ -42,19 +42,7 @@ resolve_loc_touchup (call_frame_t *frame)
resolve = state->resolve_now;
loc = state->loc_now;
- if (!loc->path) {
- if (loc->parent && resolve->bname) {
- ret = inode_path (loc->parent, resolve->bname, &path);
- loc->name = resolve->bname;
- } else if (loc->inode) {
- ret = inode_path (loc->inode, NULL, &path);
- }
- if (ret)
- gf_log (frame->this->name, GF_LOG_TRACE,
- "return value inode_path %d", ret);
- loc->path = path;
- }
-
+ loc_touchup (loc, resolve->bname);
return 0;
}