]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix PG::all_unfound_are_queried_or_lost for non-existent osds 4416/head
authorMykola Golub <mgolub@mirantis.com>
Tue, 3 Mar 2015 06:45:58 +0000 (08:45 +0200)
committerxinxin shu <xinxin.shu@intel.com>
Thu, 23 Apr 2015 21:54:50 +0000 (05:54 +0800)
commit1f6b1bb51d0b40899155313165ac5e3a21dde11a
treebaf5aeeb91e2b08d2399ef3c327d22be3c2849cc
parent12143ff9b25fdd96f8d1a9cecb1329c7f354d414
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>
(cherry picked from commit 5bb51320138ff714806d24312149f6275d546608)
src/osd/PG.cc