[sheepdog] [PATCH] sheep: fix wrong number of nodes

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Mar 12 01:10:06 CET 2013


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/group.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sheep/group.c b/sheep/group.c
index c646101..e781579 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -458,7 +458,7 @@ int epoch_log_read_remote(uint32_t epoch, struct sd_node *nodes, int len)
 	int i, nr, ret;
 	struct vnode_info *vinfo = get_vnode_info();
 
-	nr = vinfo->nr_vnodes;
+	nr = vinfo->nr_nodes;
 	for (i = 0; i < nr; i++) {
 		struct sd_req hdr;
 		struct sd_rsp *rsp = (struct sd_rsp *)&hdr;
-- 
1.8.1.3.566.gaa39828




More information about the sheepdog mailing list