[sheepdog] [PATCH] sheep: return NETWORK_ERROR when remove_object() fail to connect_to()
Liu Yuan
namei.unix at gmail.com
Thu May 31 14:50:32 CEST 2012
From: Liu Yuan <tailai.ly at taobao.com>
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
sheep/store.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sheep/store.c b/sheep/store.c
index c1d3ab6..ad9883e 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -637,7 +637,7 @@ int remove_object(struct vnode_info *vnodes, uint32_t epoch,
fd = connect_to(name, v->port);
if (fd < 0) {
- rsp->result = SD_RES_EIO;
+ rsp->result = SD_RES_NETWORK_ERROR;
return -1;
}
--
1.7.10.2
More information about the sheepdog
mailing list