summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-17 00:49:16 +0100
committerSage Weil <sage@newdream.net>2010-02-17 00:49:59 +0100
commit157dec166386d05df0144065a4b13a672c6749ae (patch)
tree587aecd0f8766e9014f4f01895aa44a53133e644
parentosd: pool cleanups (diff)
downloadceph-157dec166386d05df0144065a4b13a672c6749ae.tar.xz
ceph-157dec166386d05df0144065a4b13a672c6749ae.zip
osdmap: get rid of useless max_pools
-rw-r--r--src/osd/OSDMap.h6
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);