Skip to content
Commit 4fc51be8 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: use rbtree for pg pools; decode new osdmap format



Since we can now create and destroy pg pools, the pool ids will be sparse,
and an array no longer makes sense for looking up by pool id.  Use an
rbtree instead.

The OSDMap encoding also no longer has a max pool count (previously used to
allocate the array).  There is a new pool_max, that is the largest pool id
we've ever used, although we don't actually need it in the client.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 9794b146
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment