summaryrefslogtreecommitdiffstats
path: root/xlators/performance/write-behind/src
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2013-07-05 23:50:52 +0530
committerAnand Avati <avati@redhat.com>2013-07-24 18:39:13 -0700
commit5fbee7cdad349f514ec6a1adc306bad6bb031297 (patch)
tree7ce5a689ee8d81e78f458a5ed8fe5b6663b8a855 /xlators/performance/write-behind/src
parent7cfef511898ba2d555256e6d7f53bd97ed69e6e0 (diff)
write-behind: preserve error returned as-is
Change-Id: Ib766403774c1323e0bbddafedeaa47e7fa3a59fa Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 987415 Reviewed-on: http://review.gluster.org/5296 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/performance/write-behind/src')
-rw-r--r--xlators/performance/write-behind/src/write-behind.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c
index 6a2fcc40fcd..e01a227f30e 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;
}