On 04/07/2012 01:23 AM, MORITA Kazutaka wrote: > Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> > --- > sheep/store.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/sheep/store.c b/sheep/store.c > index d98d2b4..8daefd8 100644 > --- a/sheep/store.c > +++ b/sheep/store.c > @@ -210,7 +210,9 @@ static int read_copy_from_cluster(struct request *req, uint32_t epoch, > int fd; > > e = req->entry; > - nr = req->nr_vnodes; > + nr = sys->nr_sobjs; > + if (nr > req->nr_zones) > + nr = req->nr_zones; > > for (i = 0; i < nr; i++) { > n = obj_to_sheep(e, nr, oid, i); Applied these two patch, thanks. Yuan |