diff options
author | Anand Avati <avati@gluster.com> | 2009-10-26 05:45:59 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-26 07:09:20 -0700 |
commit | bd145077164ee20e3eb03f09b401e9a3ebdf8b6e (patch) | |
tree | 05b7fd341c4a08852ecdcc80123c2cb334c53963 /xlators | |
parent | 79a5b7273d107f3c73534a117157184ffbc170e8 (diff) |
protocol/server: touchup loc only if inode/entry resolution was successful
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/protocol/server/src/server-resolve.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index 6989bd91524..586790479d4 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -351,7 +351,8 @@ server_resolve_entry (call_frame_t *frame) return 0; } - resolve_loc_touchup (frame); + if (ret == 0) + resolve_loc_touchup (frame); server_resolve_all (frame); @@ -426,7 +427,8 @@ server_resolve_inode (call_frame_t *frame) return 0; } - resolve_loc_touchup (frame); + if (ret == 0) + resolve_loc_touchup (frame); server_resolve_all (frame); |