[sheepdog] [PATCH] sheep: fix wrong number of nodes
Liu Yuan
namei.unix at gmail.com
Tue Mar 12 07:19:59 CET 2013
On 03/12/2013 08:10 AM, MORITA Kazutaka wrote:
> 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;
>
Applied, thanks.
Yuan
More information about the sheepdog
mailing list