CID 716965: Data race condition (MISSING_LOCK)
At (2): Accessing "this->m_stop" ("_ZN4ceph3log3LogE.m_stop") requires the "_ZN4ceph3log3LogE.m_queue_mutex" lock.
This isn't strictly needed since we assume only one thread will call this
method and start a thead, but it makes coverity happy.
Signed-off-by: Sage Weil <sage@inktank.com>
void Log::start()
{
assert(!is_started());
+ pthread_mutex_lock(&m_queue_mutex);
m_stop = false;
+ pthread_mutex_unlock(&m_queue_mutex);
create();
}