Skip to content

Commit

Permalink
os/bluestore: fix incorrect pool decoding of bnode
Browse files Browse the repository at this point in the history
"pool" is a pointer, and we shall alter its value instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Jul 4, 2016
1 parent 76705d8 commit 29d2931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29d2931

Please sign in to comment.