]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mimic: mgr/MgrClient: Protect daemon_health_metrics 23458/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:34:14 +0000 (11:34 +1000)
commitaf4ea0ab780cada9d81c43534675b67664cbd8d1
tree94cc7015dc5050e3d6eca9441855a8271fd913a4
parent35dbe36f19323b6b885fad71f47ad0ed4e9d09e9
mimic: 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)
src/mgr/MgrClient.cc