[sheepdog] [PATCH] sheep: set error result correctly in forward_write_obj
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Jun 4 10:57:21 CEST 2012
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/gateway.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sheep/gateway.c b/sheep/gateway.c
index d287d0c..c2ec901 100644
--- a/sheep/gateway.c
+++ b/sheep/gateway.c
@@ -151,6 +151,7 @@ int forward_write_obj_req(struct request *req)
if (rsp->result != SD_RES_SUCCESS) {
eprintf("fail %"PRIu32"\n", ret);
+ ret = rsp->result;
goto out;
}
}
--
1.7.2.5
More information about the sheepdog
mailing list