[sheepdog] [PATCH 2/2] sheep: fix local_get_epoch()
Liu Yuan
namei.unix at gmail.com
Sun Jun 24 13:34:42 CEST 2012
From: Liu Yuan <tailai.ly at taobao.com>
We should also add the piggybacked ctime to the length
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
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
More information about the sheepdog
mailing list