]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor: check mon_max_pool_pg_num when set pool pg_num 16511/head
authorchenhg <mesfet@126.com>
Sun, 23 Jul 2017 09:21:26 +0000 (17:21 +0800)
committerchenhg <mesfet@126.com>
Mon, 24 Jul 2017 10:36:30 +0000 (18:36 +0800)
commit5dd3dff0f61987fea8a2511496ae952ec1b07f52
tree83f0b614d601c06636ffb42fa2e25d70ee698834
parent17c1a8f74a4d4985e936cbff4276e86eae619d3c
OSDMonitor: check mon_max_pool_pg_num when set pool pg_num

Check the mon_max_pool_pg_num when creating pools, but did not

check in the the modification. So we can create a pool and then

modify pg_num exceeds the mon_max_pool_pg_num limit.

By following these steps can verify this problem

step 1: set  mon_max_pool_pg_num = 65536

step 2: ceph osd pool create testpool 65536 65536

step 3: ceph osd pool set testpool pg_num 65537

Signed-off-by: chenhg <c744402859@gmail.com>
src/mon/OSDMonitor.cc