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 <[email protected]> --- 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 -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
