diff options
author | Sage Weil <sage@newdream.net> | 2010-02-16 18:55:03 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-17 13:02:49 -0500 |
commit | 4fc51be8fa7043ff9a1e34fef0e99214373332ac (patch) | |
tree | beba3bc83b5a07a16bb63c6e80713cb2b42bf4fb /fs/ceph/rados.h | |
parent | 9794b146fa7b93f8ab74fb62d67fdefad760769f (diff) |
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: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/rados.h')
-rw-r--r-- | fs/ceph/rados.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/rados.h b/fs/ceph/rados.h index 1f4c78640541..26ac8b89a676 100644 --- a/fs/ceph/rados.h +++ b/fs/ceph/rados.h | |||
@@ -11,8 +11,8 @@ | |||
11 | /* | 11 | /* |
12 | * osdmap encoding versions | 12 | * osdmap encoding versions |
13 | */ | 13 | */ |
14 | #define CEPH_OSDMAP_INC_VERSION 3 | 14 | #define CEPH_OSDMAP_INC_VERSION 4 |
15 | #define CEPH_OSDMAP_VERSION 3 | 15 | #define CEPH_OSDMAP_VERSION 4 |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * fs id | 18 | * fs id |