summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2009-11-18 01:11:11 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-19 00:53:13 -0800
commit6148894110fd83d020e92b49b9b6f2532d7c7a99 (patch)
treea3bf52b0738e53eef151e900eaa015332345d404 /xlators/protocol/client
parent7a5325d284a850f4a18de8795f88e45816bfaf4f (diff)
Check for other return values as well from call to inode_path.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r--xlators/protocol/client/src/client-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c
index de7ad5c391b..c33e301e00b 100644
--- a/xlators/protocol/client/src/client-protocol.c
+++ b/xlators/protocol/client/src/client-protocol.c
@@ -5862,7 +5862,7 @@ protocol_client_reopendir (xlator_t *this, client_fd_ctx_t *fdctx)
inode = fdctx->inode;
ret = inode_path (inode, NULL, &path);
- if (ret == -1) {
+ if (ret < 0) {
goto out;
}
@@ -5985,7 +5985,7 @@ protocol_client_reopen (xlator_t *this, client_fd_ctx_t *fdctx)
inode = fdctx->inode;
ret = inode_path (inode, NULL, &path);
- if (ret == -1) {
+ if (ret < 0) {
goto out;
}