mirror of
https://github.com/ceph/ceph
synced 2025-01-29 14:34:40 +00:00
log: remove unused lock
m_lock is initialized and destroyed, but never used. Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
2c5b68c383
commit
88f4a962e1
@ -42,9 +42,6 @@ Log::Log(SubsystemMap *s)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = pthread_spin_init(&m_lock, PTHREAD_PROCESS_SHARED);
|
||||
assert(ret == 0);
|
||||
|
||||
ret = pthread_mutex_init(&m_flush_mutex, NULL);
|
||||
assert(ret == 0);
|
||||
|
||||
@ -73,7 +70,6 @@ Log::~Log()
|
||||
if (m_fd >= 0)
|
||||
TEMP_FAILURE_RETRY(::close(m_fd));
|
||||
|
||||
pthread_spin_destroy(&m_lock);
|
||||
pthread_mutex_destroy(&m_queue_mutex);
|
||||
pthread_mutex_destroy(&m_flush_mutex);
|
||||
pthread_cond_destroy(&m_cond_loggers);
|
||||
|
@ -21,7 +21,6 @@ class Log : private Thread
|
||||
|
||||
SubsystemMap *m_subs;
|
||||
|
||||
pthread_spinlock_t m_lock;
|
||||
pthread_mutex_t m_queue_mutex;
|
||||
pthread_mutex_t m_flush_mutex;
|
||||
pthread_cond_t m_cond_loggers;
|
||||
|
Loading…
Reference in New Issue
Block a user