From 6148894110fd83d020e92b49b9b6f2532d7c7a99 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Wed, 18 Nov 2009 01:11:11 +0000 Subject: Check for other return values as well from call to inode_path. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati 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 --- xlators/protocol/client/src/client-protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/protocol/client') 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; } -- cgit