From 5fbee7cdad349f514ec6a1adc306bad6bb031297 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 5 Jul 2013 23:50:52 +0530 Subject: write-behind: preserve error returned as-is Change-Id: Ib766403774c1323e0bbddafedeaa47e7fa3a59fa Signed-off-by: Amar Tumballi BUG: 987415 Reviewed-on: http://review.gluster.org/5296 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/performance/write-behind/src/write-behind.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index 6a2fcc40..e01a227f 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -213,11 +213,7 @@ wb_fd_err (fd_t *fd, xlator_t *this, int32_t *op_errno) int32_t tmp = 0; if (fd_ctx_get (fd, this, &value) == 0) { - if (value != EBADF) { - fd_ctx_set (fd, this, EBADF); - } - - if (op_errno != NULL) { + if (op_errno) { tmp = value; *op_errno = tmp; } -- cgit