From 9d4ba49cd3f8055d4305d85c6149311e36d78bdd Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 8 Dec 2010 23:14:04 +0000 Subject: check the return value after setting the fd context in afr Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 865 (Add locks recovery support in GlusterFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=865 --- xlators/cluster/afr/src/afr-lk-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/afr/src/afr-lk-common.c b/xlators/cluster/afr/src/afr-lk-common.c index c8b0b66009e..b213826d03d 100644 --- a/xlators/cluster/afr/src/afr-lk-common.c +++ b/xlators/cluster/afr/src/afr-lk-common.c @@ -1704,8 +1704,8 @@ afr_mark_locked_nodes (xlator_t *this, fd_t *fd, priv = this->private; - afr_fd_ctx_set (this, fd); - if (ret < 0) + ret = afr_fd_ctx_set (this, fd); + if (ret) goto out; ret = fd_ctx_get (fd, this, &tmp); -- cgit