[Sheepdog] [PATCH 1/3] reset retry_cnt before calling __fill_obj_list()
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Tue Nov 22 14:25:09 CET 2011
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 91b32c2..6ef3234 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -1664,7 +1664,7 @@ static int fill_obj_list(struct recovery_work *rw,
uint8_t *buf = NULL;
size_t buf_size = SD_DATA_OBJ_SIZE; /* FIXME */
struct sheepdog_vnode_list_entry *vnodes;
- int nr_vnodes, retry_cnt = 0;
+ int nr_vnodes, retry_cnt;
vnodes = malloc(sizeof(*vnodes) * SD_MAX_VNODES);
buf = malloc(buf_size);
@@ -1683,6 +1683,7 @@ static int fill_obj_list(struct recovery_work *rw,
/* cur_entry[i] doesn't have a list file */
continue;
+ retry_cnt = 0;
retry:
nr = __fill_obj_list(cur_entry + i, rw->epoch, buf, buf_size);
if (nr < 0) {
--
1.7.2.5
More information about the sheepdog
mailing list