[sheepdog] [PATCH] sheep: fix peer_create_and_write_obj()

Liu Yuan namei.unix at gmail.com
Fri Oct 18 17:49:53 CEST 2013


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

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 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




More information about the sheepdog mailing list