]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix locking for MetadataUpdate::finish 44212/head
authorSage Weil <sage@newdream.net>
Wed, 24 Nov 2021 18:22:26 +0000 (13:22 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Fri, 17 Dec 2021 14:53:27 +0000 (21:53 +0700)
commit34000975471cb6a4a4f4397fa796454271caede2
treebb592ddad5ac600199bdfe3a6e48aa583252c4d7
parent5e311dc1d8d30b735b73ebe4134cce5af0e488dc
mgr: fix locking for MetadataUpdate::finish

We need to hold the DaemonState lock here since we are both reading and
writing its content.

Fixes: https://tracker.ceph.com/issues/53393
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 5096685cd623de71a7c45a667e1dd776357fd997)
src/mgr/Mgr.cc