[sheepdog] [PATCH 3/3] sheep, recovery: fix screen_object_list() for duplicate oid

Liu Yuan namei.unix at gmail.com
Tue Jun 12 17:16:11 CEST 2012


From: Liu Yuan <tailai.ly at taobao.com>

This bug was a regression by a patch that accidentally remove this qsort()

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 sheep/recovery.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sheep/recovery.c b/sheep/recovery.c
index a1f7cfc..b7084ba 100644
--- a/sheep/recovery.c
+++ b/sheep/recovery.c
@@ -526,6 +526,8 @@ static void screen_object_list(struct recovery_work *rw,
 			break;
 		}
 	}
+
+	qsort(rw->oids, rw->count, sizeof(uint64_t), obj_cmp);
 }
 
 static int newly_joined(struct sd_node *node, struct recovery_work *rw)
-- 
1.7.10.2




More information about the sheepdog mailing list