commit 57f9e5c introduce this bug that forgot to pass offset to create_and_write

Signed-off-by: Liu Yuan <[email protected]>
---
 sheep/ops.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sheep/ops.c b/sheep/ops.c
index e39a21b..a10f908 100644
--- a/sheep/ops.c
+++ b/sheep/ops.c
@@ -942,6 +942,8 @@ static int peer_create_and_write_obj(struct request *req)
        iocb.length = hdr->data_length;
        iocb.ec_index = hdr->obj.ec_index;
        iocb.copy_policy = hdr->obj.copy_policy;
+       iocb.offset = hdr->obj.offset;
+
        return sd_store->create_and_write(hdr->obj.oid, &iocb);
 }
 
-- 
1.7.9.5

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to