]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix onode vs extent key suffix 11452/head
authorSage Weil <sage@redhat.com>
Wed, 12 Oct 2016 22:27:14 +0000 (18:27 -0400)
committerSage Weil <sage@redhat.com>
Wed, 12 Oct 2016 22:27:14 +0000 (18:27 -0400)
commitd51debaa8499ee243821022700e1fd8cf524a927
tree94041c8f40336802ec03c7aa726fdfea0020920c
parent90b8196b4b8990ea6391696418094fca4a19d41a
os/bluestore: fix onode vs extent key suffix

I set the extent key suffix as 'x', thinking that was
not a valid hex character and would let us quickly
identify extent keys (vs onode keys, which end with an
encoded u64). But that doesn't work: the keys encode
integer values in raw form--not in hex
(pretty_binary_string just prints it out that way in
the debug log).

Fix by appending 'o' to the onode keys, so that we will
always have a trailing 'o' or 'x' and can use the last
char reliably to determine the type.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc