From 45281efad1ae6b2b5ddd5549c56dbdd46671e5c5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 23 Dec 2014 11:03:17 -0800 Subject: [PATCH] hobject_t: fix get_boundary to work with new sorting regime The hash is no longer the most significant field; set everything that is more significant, too. Signed-off-by: Sage Weil --- src/common/hobject.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/hobject.h b/src/common/hobject.h index bc1d51e3af3f7..054b6c114735a 100644 --- a/src/common/hobject.h +++ b/src/common/hobject.h @@ -112,6 +112,7 @@ public: return *this; hobject_t ret; ret.set_hash(hash); + ret.pool = pool; return ret; } @@ -302,6 +303,8 @@ public: return *this; ghobject_t ret; ret.hobj.set_hash(hobj.hash); + ret.shard_id = shard_id; + ret.hobj.pool = hobj.pool; return ret; } filestore_hobject_key_t get_filestore_key_u32() const { -- 2.39.5