diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-12-08 23:14:04 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-12-12 20:07:29 -0800 |
commit | 9d4ba49cd3f8055d4305d85c6149311e36d78bdd (patch) | |
tree | c9fcb810de30167bcc460c0a1900e163a5d08f10 /xlators/cluster/afr/src/afr-lk-common.c | |
parent | 48d6fe293a487727d4686f64ef410a3df569f6a8 (diff) |
check the return value after setting the fd context in afr
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 865 (Add locks recovery support in GlusterFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=865
Diffstat (limited to 'xlators/cluster/afr/src/afr-lk-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-lk-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |