]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/DaemonServer: handle_conf_change - fix broken locking 27184/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 26 Mar 2019 08:08:43 +0000 (16:08 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 26 Mar 2019 08:09:08 +0000 (16:09 +0800)
commita929a5a01508e661fc7f3cea52822320d39983d2
treee3accd3c71f3a48c5db49f9ec4bc779cc14d88f5
parentbb257f10f7a418cfbaf0744ebe2f955321d924c9
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>
src/mgr/DaemonServer.cc