[Sheepdog] [PATCH 1/2] sheep: remove a redundant fix of consistency in read_object()
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Sat Feb 5 17:11:00 CET 2011
read_object() should access only read-only objects, so it is not
needed to fix consistency.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/sdnet.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/sheep/sdnet.c b/sheep/sdnet.c
index 0040945..e043b78 100644
--- a/sheep/sdnet.c
+++ b/sheep/sdnet.c
@@ -664,13 +664,6 @@ int read_object(struct sheepdog_node_list_entry *e,
return ret;
}
- /* fix replication consistency */
- if (nr > 1) {
- if (write_object(e, nodes, node_version, oid,
- data, datalen, offset, nr, 0))
- eprintf("failed to fix obj consistency\n");
- }
-
return ret;
}
--
1.5.6.5
More information about the sheepdog
mailing list