summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-05-07 05:05:03 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-05-08 18:12:16 +0530
commit124f02ed49615e8337d249a2c56e95a5298a856b (patch)
treed9abaa3d7ebbf7db1bda2eb1d98777d10e04b72a /xlators/cluster/afr
parentb3f7efe247ad114b6071ba6a2d6816f783d4aa15 (diff)
Set op_errno properly in afr_flush.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r--xlators/cluster/afr/src/afr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 9021b8820ff..ab10df8fc3d 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -1044,6 +1044,7 @@ afr_flush (call_frame_t *frame, xlator_t *this, fd_t *fd)
transaction_frame = copy_frame (frame);
if (!transaction_frame) {
+ op_errno = ENOMEM;
gf_log (this->name, GF_LOG_ERROR,
"Out of memory.");
goto out;