Can't compile product version.
This commit is contained in:
@ -1221,7 +1221,7 @@ static void* thr_filewriter_fun(
|
|||||||
mlist_node_t* node;
|
mlist_node_t* node;
|
||||||
mlist_node_t* prev_node;
|
mlist_node_t* prev_node;
|
||||||
int i;
|
int i;
|
||||||
bool succp;
|
ss_debug(bool succp;)
|
||||||
|
|
||||||
thr = (skygw_thread_t *)data;
|
thr = (skygw_thread_t *)data;
|
||||||
fwr = (filewriter_t *)skygw_thread_get_data(thr);
|
fwr = (filewriter_t *)skygw_thread_get_data(thr);
|
||||||
@ -1263,7 +1263,7 @@ static void* thr_filewriter_fun(
|
|||||||
wb = (logfile_writebuf_t*)node->mlnode_data;
|
wb = (logfile_writebuf_t*)node->mlnode_data;
|
||||||
writep = wb->wb_buf;
|
writep = wb->wb_buf;
|
||||||
nbytes = strlen(writep);
|
nbytes = strlen(writep);
|
||||||
succp = skygw_file_write(file, (void *)writep, nbytes);
|
ss_debug(succp = )skygw_file_write(file, (void *)writep, nbytes);
|
||||||
ss_dassert(succp);
|
ss_dassert(succp);
|
||||||
prev_node = node;
|
prev_node = node;
|
||||||
node = node->mlnode_next;
|
node = node->mlnode_next;
|
||||||
|
|||||||
@ -76,9 +76,9 @@
|
|||||||
|
|
||||||
# define ss_debug(exp)
|
# define ss_debug(exp)
|
||||||
# define ss_dfprintf(a, b, ...)
|
# define ss_dfprintf(a, b, ...)
|
||||||
# define ss_dfflush
|
# define ss_dfflush(s)
|
||||||
# define ss_dfwrite
|
# define ss_dfwrite(a, b, c, d)
|
||||||
# define ss_dassert
|
# define ss_dassert(exp)
|
||||||
# define ss_info_dassert(exp, info)
|
# define ss_info_dassert(exp, info)
|
||||||
|
|
||||||
#endif /* SS_DEBUG */
|
#endif /* SS_DEBUG */
|
||||||
|
|||||||
@ -64,7 +64,7 @@ struct skygw_thread_st {
|
|||||||
pthread_t sth_parent;
|
pthread_t sth_parent;
|
||||||
pthread_t sth_thr;
|
pthread_t sth_thr;
|
||||||
int sth_errno;
|
int sth_errno;
|
||||||
#if defined(SS_DEBUG)
|
#if defined(DEBUG)
|
||||||
skygw_thr_state_t sth_state;
|
skygw_thr_state_t sth_state;
|
||||||
#endif
|
#endif
|
||||||
char* sth_name;
|
char* sth_name;
|
||||||
@ -916,7 +916,7 @@ void skygw_thread_done(
|
|||||||
CHK_THREAD(th);
|
CHK_THREAD(th);
|
||||||
ss_dassert(th->sth_state == THR_STOPPED);
|
ss_dassert(th->sth_state == THR_STOPPED);
|
||||||
ss_debug(th->sth_state = THR_DONE;)
|
ss_debug(th->sth_state = THR_DONE;)
|
||||||
simple_mutex_done(th->sth_mutex);
|
simple_mutex_done(th->sth_mutex);
|
||||||
thread_free_memory(th, th->sth_name);
|
thread_free_memory(th, th->sth_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user