]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: only exit if *latest* map(s) say we are destroyed 20068/head
authorSage Weil <sage@redhat.com>
Wed, 17 Jan 2018 16:38:29 +0000 (10:38 -0600)
committerNathan Cutler <ncutler@suse.com>
Tue, 23 Jan 2018 10:01:36 +0000 (11:01 +0100)
commita0c0e637fe276aa1b6223522ca00a810e83d5084
tree92294f670e848d1cd567fe1cc18751c0ae7575fe
parent1a69f3ed7c4b13940848a32bbf474f8b6b77f3bf
osd: only exit if *latest* map(s) say we are destroyed

It's possible our current map is older, we were destroyed then, but in
newer maps our osd was recreated.  This happens when the oldest map after
a recreated osd happens to land on an epoch where the osd was marked
destroyed.

Fix by only exiting if one of the newest maps says we are (still)
destroyed.

Fixes: http://tracker.ceph.com/issues/22673
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 4e4d6466aab259eb0436989401b80b6c3cf87a7c)
src/osd/OSD.cc