From 00d802d97ba5e1a8bde2414f8710494f15807fcd 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 (cherry picked from commit 45281efad1ae6b2b5ddd5549c56dbdd46671e5c5) --- src/common/hobject.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/hobject.h b/src/common/hobject.h index 07ceb3a15ac17..7495cc1ffd17e 100644 --- a/src/common/hobject.h +++ b/src/common/hobject.h @@ -106,6 +106,7 @@ public: return *this; hobject_t ret; ret.set_hash(hash); + ret.pool = pool; return ret; } @@ -289,6 +290,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