]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix decoding pool from bnode key
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 24 Jun 2016 06:53:39 +0000 (14:53 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 24 Jun 2016 06:53:39 +0000 (14:53 +0800)
The current result is raw and not properly translated.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 8b13695e6a5009eeaddd03e5ba4c42367d5c6008..c58c9bef1bdf02036aceebb41fc942b53505c66f 100644 (file)
@@ -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;
 }