From: levin li <xingke.lwp at taobao.com> collie uses this return value in the output of 'collie vdi object', without this, we can not pass test 028 Signed-off-by: levin li <xingke.lwp at taobao.com> --- sheep/ops.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sheep/ops.c b/sheep/ops.c index 42b99ef..aaa4ed6 100644 --- a/sheep/ops.c +++ b/sheep/ops.c @@ -754,6 +754,10 @@ int peer_read_obj(struct request *req) goto out; rsp->data_length = hdr->data_length; + if (hdr->obj.copies) + rsp->obj.copies = hdr->obj.copies; + else + rsp->obj.copies = get_obj_copy_number(hdr->obj.oid); out: return ret; } -- 1.7.1 |