]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: adjust DaemonState device index when daemon metadata is updated
authorSage Weil <sage@redhat.com>
Thu, 18 Oct 2018 22:33:46 +0000 (17:33 -0500)
committerSage Weil <sage@redhat.com>
Wed, 24 Oct 2018 17:55:08 +0000 (12:55 -0500)
commit8a2f4429b129a24a72fdbc374075bba954be5bd3
tree48869ac3aa0ed8b4f1b445fb171f1554901fd5f1
parentc52fc7b5d34f951bc10abbd86a8fb3553ef3a416
mgr: adjust DaemonState device index when daemon metadata is updated

We need to unregister the old metadata (in particular, its devices
in the DaemonState device indexes) before adjusting and reregistering
the new metadata.

Do the whole thing under the DaemonState lock to that there isn't a window
where the osd metadata isn't present at all.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/DaemonState.cc
src/mgr/DaemonState.h
src/mgr/Mgr.cc