summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-11-24 07:24:33 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-24 06:39:59 -0800
commit43a039789cbbdb50d67c960c7a6f4d0ac1858e48 (patch)
tree9ec59730d8ac6927925317eaafd0d847c5559525 /xlators/protocol
parent9f8edf2b2576a235526087f4fbc5769940f019ad (diff)
resolver: include par_idx access within the conditional section
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/server/src/server-resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c
index 4f9d97394..df16aef22 100644
--- a/xlators/protocol/server/src/server-resolve.c
+++ b/xlators/protocol/server/src/server-resolve.c
@@ -311,6 +311,7 @@ resolve_path_simple (call_frame_t *frame)
resolve->op_errno = ENOENT;
goto out;
}
+ state->loc_now->parent = inode_ref (components[par_idx].inode);
noparent:
if (!components[ino_idx].inode &&
@@ -328,7 +329,6 @@ noparent:
if (components[ino_idx].inode)
state->loc_now->inode = inode_ref (components[ino_idx].inode);
- state->loc_now->parent = inode_ref (components[par_idx].inode);
ret = 0;