[sheepdog] [PATCH] sheep: remove local node from the target of SD_OP_GET_OBJ_LIST
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri May 17 15:40:07 CEST 2013
No need to fetch object list from local because we already have it.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/recovery.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sheep/recovery.c b/sheep/recovery.c
index fb2df3b..da828ca 100644
--- a/sheep/recovery.c
+++ b/sheep/recovery.c
@@ -749,6 +749,10 @@ again:
size_t nr_oids;
struct sd_node *node = cur + i;
+ if (node_is_local(node))
+ /* skip local node */
+ continue;
+
if (uatomic_read(&next_rinfo)) {
sd_dprintf("go to the next recovery");
return;
--
1.8.1.3.566.gaa39828
More information about the sheepdog
mailing list