]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/MissingLoc.cc: do not rely on missing_loc_sources only 30226/head
authorNeha Ojha <nojha@redhat.com>
Fri, 6 Sep 2019 03:35:51 +0000 (20:35 -0700)
committerNeha Ojha <nojha@redhat.com>
Fri, 6 Sep 2019 22:49:36 +0000 (15:49 -0700)
commit5906a57320f04f57a38eef9588bd16ac3fd4e55d
tree8fdfce37295850c3a118f84f4cc6d58664bcb576
parentc52b8b0c76eb8f87508b1330be9a8e8925417b93
osd/MissingLoc.cc: do not rely on missing_loc_sources only

In 624ade487ea4aeaf988cc1767e0b293f76addd5b, we relied on missing_loc_sources
to check for strays and remove an OSD from missing_loc. However, it is
possible that missing_loc_sources is empty while there are still OSDs
present in missing_loc. Since the aim is to just remove a stray OSD from
missing_loc, we do not need to rely on missing_loc_sources. We still
clean missing_loc_sources if any stray is present in it.

Signed-off-by: Neha Ojha <nojha@redhat.com>
src/osd/MissingLoc.cc