[Sheepdog] [PATCH 3/3] sheep: send read requests directly in copy-on-write

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Jan 31 18:46:45 CET 2011


The target objects could be read from multiple nodes, so it is not
safe to use non-direct access here.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sheep/store.c b/sheep/store.c
index 8fa4d9e..238605a 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -301,7 +301,7 @@ static int read_from_one(struct request *req, uint32_t epoch, uint64_t oid,
 
 		rlen = *ori_rlen;
 		wlen = 0;
-		hdr.flags = 0;
+		hdr.flags = SD_FLAG_CMD_DIRECT;
 		hdr.data_length = rlen;
 		hdr.offset = offset;
 
-- 
1.5.6.5




More information about the sheepdog mailing list