]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/DaemonServer: handle_conf_change - fix broken locking 27454/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 26 Mar 2019 08:08:43 +0000 (16:08 +0800)
committerPrashant D <pdhange@redhat.com>
Tue, 9 Apr 2019 00:38:18 +0000 (20:38 -0400)
commit7debc4c2cee28b05daa45b28022de39b7e90a18b
tree9a65133cafe28a7991896e344acc896eb2b6741e
parent5845c2243a90c26fd08c3dacb981de4c06e52470
mgr/DaemonServer: handle_conf_change - fix broken locking

The is_locked_by_me() is only meant to be safe if you know
you hold the lock. It's meant to be used in an assertion.

Fixes: http://tracker.ceph.com/issues/38899
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit a929a5a01508e661fc7f3cea52822320d39983d2)
src/mgr/DaemonServer.cc