From: xie xingguo Date: Mon, 4 Jul 2016 09:08:59 +0000 (+0800) Subject: os/bluestore: fix incorrect pool decoding of bnode X-Git-Tag: ses5-milestone5~510^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=29d2931d81c5cfae8513858d8407a56f1e3654c7;p=ceph.git os/bluestore: fix incorrect pool decoding of bnode "pool" is a pointer, and we shall alter its value instead. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 2a9a33338ab95..09a13f328d45f 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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; }