[Sheepdog] [PATCH 3/3] skip recovery when there is a pending recovery work
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Tue Nov 22 14:25:11 CET 2011
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/store.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/sheep/store.c b/sheep/store.c
index c05bec8..d4c3f27 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -1690,6 +1690,10 @@ static int fill_obj_list(struct recovery_work *rw,
eprintf("some objects may be lost\n");
continue;
} else {
+ if (next_rw) {
+ dprintf("go to the next recovery\n");
+ break;
+ }
dprintf("trying to get object list again\n");
sleep(1);
goto retry;
--
1.7.2.5
More information about the sheepdog
mailing list