<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I got it!<div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Heiti SC'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Best regards,</div><div>Wheats</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>ÔÚ 2013-6-4£¬ÏÂÎç9:39£¬Kai Zhang <<a href="mailto:kyle@zelin.io">kyle@zelin.io</a>> дµÀ£º</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Haomai</div><div><br></div><div>Actually, I am working on improving cluster-wide snapshot in two ways:</div><div>- avoid of reading objects that has exists in local path by reading sha1 value</div><div>- parallelise the procedure of reading/loading cluster snapshot</div><div><br></div><div>I have send the first version before 0.6.0 released.</div><div>And I will send another version soon.</div><div><br></div><div>This code will be dropped in this patch.</div><div><br></div><div>Please check this <a href="http://lists.wpkg.org/pipermail/sheepdog/2013-May/009817.html">http://lists.wpkg.org/pipermail/sheepdog/2013-May/009817.html</a> for more details.</div><div><br></div><div>Thanks,</div><div>Kyle</div><br><div><div>On Jun 4, 2013, at 9:25 PM, Haomai Wang <<a href="mailto:haomaiwang@gmail.com">haomaiwang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">From: Haomai Wang <haomaiwang@gmail><br><br>fix complie warning below:<br>object_tree.c:112 warning: comparison of distinct pointer types lacks a cast<br><br>Signed-off-by: Haomai Wang <haomaiwang@gmail><br>---<br> collie/farm/object_tree.c | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/collie/farm/object_tree.c b/collie/farm/object_tree.c<br>index f719af6..e29583a 100644<br>--- a/collie/farm/object_tree.c<br>+++ b/collie/farm/object_tree.c<br>@@ -109,7 +109,7 @@ int for_each_object_in_tree(object_handler_func_t func, void *data)<br> <span class="Apple-tab-span" style="white-space:pre"> </span>struct object_tree_entry *entry;<br> <span class="Apple-tab-span" style="white-space:pre"> </span>uint64_t oid;<br> <span class="Apple-tab-span" style="white-space:pre"> </span>size_t size;<br>-<span class="Apple-tab-span" style="white-space:pre"> </span>void *buf = xmalloc(max(SD_INODE_SIZE, SD_DATA_OBJ_SIZE));<br>+<span class="Apple-tab-span" style="white-space:pre"> </span>void *buf = xmalloc(max(SD_INODE_SIZE, (size_t)SD_DATA_OBJ_SIZE));<br> <span class="Apple-tab-span" style="white-space:pre"> </span>int ret = -1;<br><br> <span class="Apple-tab-span" style="white-space:pre"> </span>while (p) {<br>-- <br>1.7.12.4 (Apple Git-37)<br><br>-- <br>sheepdog mailing list<br><a href="mailto:sheepdog@lists.wpkg.org">sheepdog@lists.wpkg.org</a><br><a href="http://lists.wpkg.org/mailman/listinfo/sheepdog">http://lists.wpkg.org/mailman/listinfo/sheepdog</a><br></blockquote></div><br></div></blockquote></div><br></div></body></html>