]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/MissingLoc.cc: do not rely on missing_loc_sources only 31855/head
authorNeha Ojha <nojha@redhat.com>
Fri, 6 Sep 2019 03:35:51 +0000 (20:35 -0700)
committerNathan Cutler <ncutler@suse.com>
Mon, 16 Dec 2019 20:14:26 +0000 (21:14 +0100)
commit2ebb8e7899be83ba43aa426f5d1778d906dc1cf2
tree7660ddb7bb17ce06a19d2519ba61406149f5bef9
parent7a41371c0943f8c3ba55d9d7900b48c4966899ca
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>
(cherry picked from commit 5906a57320f04f57a38eef9588bd16ac3fd4e55d)

Conflicts:
src/osd/MissingLoc.cc
- file does not exist in luminous; made changes manually in src/osd/PG.cc
- adjust ldout for luminous
src/osd/PG.cc