]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/: remove OSDService::check_osdmap_full, fix caller
authorSamuel Just <sjust@redhat.com>
Fri, 29 Mar 2019 22:56:44 +0000 (15:56 -0700)
committersjust@redhat.com <sjust@redhat.com>
Wed, 1 May 2019 18:22:21 +0000 (11:22 -0700)
commit33c231e759f82f72fd2f3b7368ba446243516935
tree2005456f3dd982d142db15e0c070984ef6b02835
parentcabe5b52ccc08d9401967baaab244f540b56aba1
osd/: remove OSDService::check_osdmap_full, fix caller

PeeringState was the only remaining caller -- both the interface in
PGBackend and the pass-through in PrimaryLogPG were actually unused.
Further, the WaitLocalRecoveryReserved user does not appear to actually
require the fresh-off-of-the-wire osdmap available from OSDService.
As such, moved the logic into OSDMap itself and simply used the
PG local osdmap.

Note, the above is a change in behavior that probably could use a second
opinion.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h
src/osd/OSDMap.h
src/osd/PGBackend.h
src/osd/PeeringState.cc
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h