From: Liu Yuan <[email protected]>

We should also add the piggybacked ctime to the length

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

diff --git a/sheep/ops.c b/sheep/ops.c
index 4ebd4d6..6bdcc83 100644
--- a/sheep/ops.c
+++ b/sheep/ops.c
@@ -403,7 +403,7 @@ static int local_get_epoch(struct request *req)
                return SD_RES_NO_TAG;
        }
 
-       req->rp.data_length = nr_nodes * sizeof(struct sd_node);
+       req->rp.data_length = nr_nodes * sizeof(struct sd_node) + 
sizeof(time_t);
        return SD_RES_SUCCESS;
 }
 
-- 
1.7.10.2

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

Reply via email to