[sheepdog] [PATCH 04/10] sheep: don't set copies unnecessarily

Liu Yuan namei.unix at gmail.com
Tue Oct 15 16:36:37 CEST 2013


For gateway request, we don't need to set copy number.

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 sheep/store.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/sheep/store.c b/sheep/store.c
index b0af526..b092dea 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -375,7 +375,6 @@ forward_write:
 
 	hdr.obj.oid = oid;
 	hdr.obj.offset = offset;
-	hdr.obj.copies = get_vdi_copy_number(oid_to_vid(oid));
 
 	ret = exec_local_req(&hdr, data);
 	if (ret != SD_RES_SUCCESS)
@@ -395,7 +394,6 @@ int read_backend_object(uint64_t oid, char *data, unsigned int datalen,
 	hdr.data_length = datalen;
 	hdr.obj.oid = oid;
 	hdr.obj.offset = offset;
-	hdr.obj.copies = get_vdi_copy_number(oid_to_vid(oid));
 
 	ret = exec_local_req(&hdr, data);
 	if (ret != SD_RES_SUCCESS)
@@ -440,7 +438,6 @@ int remove_object(uint64_t oid)
 
 	sd_init_req(&hdr, SD_OP_REMOVE_OBJ);
 	hdr.obj.oid = oid;
-	hdr.obj.copies = get_vdi_copy_number(oid_to_vid(oid));
 
 	ret = exec_local_req(&hdr, NULL);
 	if (ret != SD_RES_SUCCESS)
-- 
1.7.9.5




More information about the sheepdog mailing list