[FEAT MERGE] Merge syslog user experience improvement to master
Co-authored-by: Charles0429 <xiezhenjiang@gmail.com> Co-authored-by: tino247 <tino247@126.com> Co-authored-by: chaser-ch <chaser.ch@antgroup.com>
This commit is contained in:
6
deps/oblib/src/common/ob_queue_thread.cpp
vendored
6
deps/oblib/src/common/ob_queue_thread.cpp
vendored
@ -25,7 +25,7 @@ ObCond::ObCond(const int64_t spin_wait_num) : spin_wait_num_(spin_wait_num),
|
||||
{
|
||||
pthread_mutex_init(&mutex_, NULL);
|
||||
if (0 != pthread_cond_init(&cond_, NULL)) {
|
||||
_OB_LOG(ERROR, "pthread_cond_init failed");
|
||||
_OB_LOG_RET(ERROR, common::OB_ERR_SYS, "pthread_cond_init failed");
|
||||
}
|
||||
}
|
||||
|
||||
@ -423,7 +423,7 @@ void *S2MQueueThread::thread_func_(void *data)
|
||||
ThreadConf *const tc = (ThreadConf *)data;
|
||||
if (NULL == tc
|
||||
|| NULL == tc->host) {
|
||||
_OB_LOG(WARN, "thread_func param null pointer");
|
||||
_OB_LOG_RET(WARN, common::OB_INVALID_ARGUMENT, "thread_func param null pointer");
|
||||
} else {
|
||||
tc->host->thread_index() = tc->index;
|
||||
void *pdata = tc->host->on_begin();
|
||||
@ -611,7 +611,7 @@ void *M2SQueueThread::thread_func_(void *data)
|
||||
{
|
||||
M2SQueueThread *const host = (M2SQueueThread *)data;
|
||||
if (NULL == host) {
|
||||
_OB_LOG(WARN, "thread_func param null pointer");
|
||||
_OB_LOG_RET(WARN, common::OB_INVALID_ARGUMENT, "thread_func param null pointer");
|
||||
} else {
|
||||
void *pdata = host->on_begin();
|
||||
while (host->run_flag_)
|
||||
|
||||
Reference in New Issue
Block a user