]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD: always activate_map in advance_pgs, only send messages if up
authorSamuel Just <sam.just@inktank.com>
Thu, 14 Feb 2013 22:03:56 +0000 (14:03 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 14 Feb 2013 22:57:38 +0000 (14:57 -0800)
commit4dfcad44431855ba7d68a1ccb41dc3cb5db6bb50
tree37003d621e568a347bc22ed9d3e03df148d7f953
parent7c2e2b999dd0de956e2aa6b1e5e7f7a6d02bc41c
OSD: always activate_map in advance_pgs, only send messages if up

We should always handle_activate_map() after handle_advance_map() in
order to kick the pg into a valid peering state for processing requests
prior to dropping the lock.

Additionally, we would prefer to avoid sending irrelevant messages
during boot, so only send if we are up according to the current service
osdmap.

Fixes: #4064
Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc