]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdmap: maintain a pool-creating build_simple() for use in unit tests
authorGreg Farnum <gfarnum@redhat.com>
Wed, 14 Jun 2017 20:05:19 +0000 (13:05 -0700)
committerSage Weil <sage@redhat.com>
Wed, 28 Jun 2017 14:52:49 +0000 (10:52 -0400)
commitcde52a8826b024fe46ea404f938edca2b0b1dfd5
treea2630f0620f2de6e7f60908f21f91ea975bfa955
parentd0006821de4a4856f5ca38f5a11d2e7075da1d79
osdmap: maintain a pool-creating build_simple() for use in unit tests

Change the standard build_simple() so it no longer takes pg[p]_num -- these
params were unused. Add a new build_simple_with_pool() that can be called
when we want the rbd pool to be created by default. These are implemented
via a simple switched function (marked private).

Update the existing callers so they choose the right one for their needs.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/OSDMonitor.cc
src/osd/OSDMap.cc
src/osd/OSDMap.h
src/test/osd/TestOSDMap.cc
src/test/osd/TestPGLog.cc
src/tools/osdmaptool.cc