]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
luminous: mgr/MgrClient: Protect daemon_health_metrics 23459/head
authorBrad Hubbard <bhubbard@redhat.com>
Thu, 2 Aug 2018 00:33:42 +0000 (10:33 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 7 Aug 2018 01:51:56 +0000 (11:51 +1000)
commit604cf6bc040b34d16101f6e806c18fb6ea8572a1
treeb1771012394e3f9fb973ee5b121405e01f3cac77
parent930b256ef10b0f202626d710a2b1844c87a15ec8
luminous: mgr/MgrClient: Protect daemon_health_metrics

Without holding the lock update_daemon_health() can race with
send_report() corrupting the daemon_health_metrics vector.

Fixes: http://tracker.ceph.com/issues/23352
Signed-off-by: Kjetil Joergensen <kjetil@medallia.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 4996506a6b4ab309110039ea29a075f14d09a379)

Conflicts:
src/mgr/MgrClient.cc Function name is different in luminous
src/mgr/MgrClient.cc