]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: apply MON config before finishing bootstrap
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Jul 2020 17:00:22 +0000 (13:00 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 20 Aug 2020 14:35:29 +0000 (10:35 -0400)
commit313aeaa55d67089e0a2e173718899e603e51ce2e
tree53fb8e3bcc89b6c44ace2050b246dc21b549a8c7
parent369252b91448f61ff4a1796ac8d33eef966f213d
mon/MonClient: apply MON config before finishing bootstrap

In general, non-primitive config options cannot be updated after
the service threads have been marked as running. In librados, this
happens after the MonClient bootstrap process. However, the configs
received from the MON were applied in a separate thread which can
race with librados marking the service threads as running.

Now the received MON configs will be applied within the context of
the bootstrap function call instead of deferring to a separate
thread.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/mon/MonClient.cc
src/mon/MonClient.h