fix sdlog2 self deadlock bug

This commit is contained in:
Bo Liu
2016-03-26 13:59:33 -05:00
parent c10b37c2ed
commit e697998828
-2
View File
@@ -634,8 +634,6 @@ static void *logwriter_thread(void *arg)
pthread_cond_wait(&logbuffer_cond, &logbuffer_mutex);
}
pthread_mutex_lock(&logbuffer_mutex);
/* only get pointer to thread-safe data, do heavy I/O a few lines down */
int available = logbuffer_get_ptr(logbuf, &read_ptr, &is_part);