From: xie xingguo Date: Fri, 24 Jun 2016 06:53:39 +0000 (+0800) Subject: os/bluestore: fix decoding pool from bnode key X-Git-Tag: v11.0.0~50^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cff6ff79286d63a6d1b6fa4355766574482a691d;p=ceph.git os/bluestore: fix decoding pool from bnode key The current result is raw and not properly translated. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 8b13695e6a50..c58c9bef1bdf 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -273,6 +273,7 @@ static int get_key_bnode(const string& key, shard_id_t *shard, return -2; p = _key_decode_shard(p, shard); p = _key_decode_u64(p, (uint64_t*)pool); + pool -= 0x8000000000000000ull; p = _key_decode_u32(p, hash); return 0; }