]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix PG::all_unfound_are_queried_or_lost for non-existent osds
authorMykola Golub <mgolub@mirantis.com>
Tue, 3 Mar 2015 06:45:58 +0000 (08:45 +0200)
committerMykola Golub <mgolub@mirantis.com>
Wed, 25 Mar 2015 07:31:52 +0000 (09:31 +0200)
commit5bb51320138ff714806d24312149f6275d546608
treebf3d31965f3ca663ec94f5a7ccf8b9a777e2da24
parente6bd722defb3850dbf14c2861b3777c6fa31fbb9
osd: fix PG::all_unfound_are_queried_or_lost for non-existent osds

A common mistake upon osd loss is to remove the osd from the crush map
before marking the osd lost. This tends to make it so that the user
can no longer mark the osd lost to satisfy all_unfound_are_queried_or_lost.

The simple solution is for all_unfound_are_queried_or_lost to ignore
the osd if it does not exist.

Fixes: #10976
Backports: firefly,giant

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/osd/PG.cc