[Sheepdog] [PATCH 08/14] retry when network error occurs
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Sat May 14 09:03:53 CEST 2011
The node membership change causes network errors, but we shouldn't
notify the errors to clients. Sheepdog should be a more available
system.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/store.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/sheep/store.c b/sheep/store.c
index 5043e7e..5f0de2a 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -1277,7 +1277,8 @@ next:
return 0;
}
- if (rsp->result == SD_RES_NEW_NODE_VER || rsp->result == SD_RES_OLD_NODE_VER) {
+ if (rsp->result == SD_RES_NEW_NODE_VER || rsp->result == SD_RES_OLD_NODE_VER
+ || rsp->result == SD_RES_NETWORK_ERROR) {
eprintf("try again, %"PRIu32", %"PRIx64"\n", rsp->result, oid);
rw->retry = 1;
return 0;
--
1.5.6.5
More information about the sheepdog
mailing list