]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: fix incorrect pool decoding of bnode
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jul 2016 09:08:59 +0000 (17:08 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jul 2016 09:08:59 +0000 (17:08 +0800)
"pool" is a pointer, and we shall alter its value instead.

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

index 2a9a33338ab9586e1a7635b531218edc551a9ebe..09a13f328d45fef0c6f54e44307e7339448593ba 100644 (file)
@@ -273,7 +273,7 @@ static int get_key_bnode(const string& key, shard_id_t *shard,
     return -1;
   p = _key_decode_shard(p, shard);
   p = _key_decode_u64(p, (uint64_t*)pool);
-  pool -= 0x8000000000000000ull;
+  *pool -= 0x8000000000000000ull;
   p = _key_decode_u32(p, hash);
   return 0;
 }