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:
Mykola Golub 2016-03-19 15:43:58 +02:00
parent 5c5a50745f
commit bbac7669ba

View File

@ -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()