]> 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)
committerMykola Golub <mgolub@suse.com>
Mon, 14 Jun 2021 12:14:31 +0000 (15:14 +0300)
commitbb220fd6ecd1a6924b078aa343ec51030d65da22
tree7f153ddcd32cacc908daf4ba57f28b6532a2b412
parenta95343f971c40c624a0c5a395aea73fef3ca4fe2
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>
(cherry picked from commit 313aeaa55d67089e0a2e173718899e603e51ce2e)

Conflicts:
src/mon/MonClient.cc (trivial)
src/mon/MonClient.cc
src/mon/MonClient.h