[sheepdog] [PATCH RFT] sheep: let only ledger objects be sparse ones

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Jul 14 14:40:06 CEST 2014


From: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 sheep/sheep_priv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index 7b33f11..3fb9fe7 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -479,7 +479,7 @@ static inline bool node_is_local(const struct sd_node *n)
  */
 static inline bool is_sparse_object(uint64_t oid)
 {
-	return !is_data_obj(oid) || oid_is_readonly(oid);
+	return is_ledger_object(oid);
 }
 
 /* gateway operations */
-- 
1.9.1




More information about the sheepdog mailing list