diff options
author | Sage Weil <sage@newdream.net> | 2010-02-17 00:49:16 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-17 00:49:59 +0100 |
commit | 157dec166386d05df0144065a4b13a672c6749ae (patch) | |
tree | 587aecd0f8766e9014f4f01895aa44a53133e644 | |
parent | osd: pool cleanups (diff) | |
download | ceph-157dec166386d05df0144065a4b13a672c6749ae.tar.xz ceph-157dec166386d05df0144065a4b13a672c6749ae.zip |
osdmap: get rid of useless max_pools
-rw-r--r-- | src/osd/OSDMap.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h index f7f0f92f87e..cfa28135b76 100644 --- a/src/osd/OSDMap.h +++ b/src/osd/OSDMap.h @@ -571,10 +571,6 @@ private: ::encode(created, bl); ::encode(modified, bl); - int32_t max_pools = 0; - if (pools.size()) - max_pools = pools.rbegin()->first + 1; - ::encode(max_pools, bl); ::encode(pools, bl); ::encode(pool_max, bl); @@ -610,8 +606,6 @@ private: ::decode(created, p); ::decode(modified, p); - int32_t max_pools; - ::decode(max_pools, p); ::decode(pools, p); ::decode(pool_max, p); |