mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
rbd-mirror: fix long termination due to 30sec wait in Mirror::run loop
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
5c5a50745f
commit
bbac7669ba
@ -40,6 +40,10 @@ Mirror::Mirror(CephContext *cct, const std::vector<const char*> &args) :
|
||||
void Mirror::handle_signal(int signum)
|
||||
{
|
||||
m_stopping.set(1);
|
||||
{
|
||||
Mutex::Locker l(m_lock);
|
||||
m_cond.Signal();
|
||||
}
|
||||
}
|
||||
|
||||
int Mirror::init()
|
||||
|
Loading…
Reference in New Issue
Block a user