]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/MgrClient: Protect daemon_health_metrics 23404/head
authorBrad Hubbard <bhubbard@redhat.com>
Thu, 2 Aug 2018 00:33:42 +0000 (10:33 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 2 Aug 2018 21:44:02 +0000 (07:44 +1000)
commit4996506a6b4ab309110039ea29a075f14d09a379
treeaab0d153d0573a440c93aa49caf7531553e5824f
parentc909c0aa35759f555c71c112ab0d12a47f52e895
mgr/MgrClient: Protect daemon_health_metrics

Without holiding 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>
src/mgr/MgrClient.cc