Little fixes
This commit is contained in:
@ -257,6 +257,8 @@ return_succp:
|
|||||||
return succp;
|
return succp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @node Initializes log managing routines in SkySQL Gateway.
|
* @node Initializes log managing routines in SkySQL Gateway.
|
||||||
*
|
*
|
||||||
@ -341,6 +343,7 @@ static void logmanager_done_nomutex(
|
|||||||
lm = NULL;
|
lm = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @node End execution of log manager
|
* @node End execution of log manager
|
||||||
*
|
*
|
||||||
@ -1263,7 +1266,9 @@ 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);
|
||||||
ss_debug(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;
|
||||||
@ -1272,6 +1277,7 @@ static void* thr_filewriter_fun(
|
|||||||
}
|
}
|
||||||
} /* for */
|
} /* for */
|
||||||
} /* while */
|
} /* while */
|
||||||
|
|
||||||
ss_debug(skygw_thread_set_state(thr, THR_STOPPED));
|
ss_debug(skygw_thread_set_state(thr, THR_STOPPED));
|
||||||
/** Inform log manager that file writer thread has stopped. */
|
/** Inform log manager that file writer thread has stopped. */
|
||||||
skygw_message_send(fwr->fwr_clientmes);
|
skygw_message_send(fwr->fwr_clientmes);
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
# define FALSE false
|
# define FALSE false
|
||||||
#elif !defined(TRUE) && !defined(FALSE)
|
#elif !defined(TRUE) && !defined(FALSE)
|
||||||
typedef enum {FALSE=0, TRUE} bool;
|
typedef enum {FALSE=0, TRUE} bool;
|
||||||
|
#else
|
||||||
|
#define bool int
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* SKYGW_TYPES_H */
|
#endif /* SKYGW_TYPES_H */
|
||||||
|
@ -107,6 +107,9 @@ skygw_thread_t* skygw_thread_init(
|
|||||||
void skygw_thread_done(skygw_thread_t* th);
|
void skygw_thread_done(skygw_thread_t* th);
|
||||||
int skygw_thread_start(skygw_thread_t* thr);
|
int skygw_thread_start(skygw_thread_t* thr);
|
||||||
skygw_thr_state_t skygw_thread_get_state(skygw_thread_t* thr);
|
skygw_thr_state_t skygw_thread_get_state(skygw_thread_t* thr);
|
||||||
|
|
||||||
|
EXTERN_C_BLOCK_BEGIN
|
||||||
|
|
||||||
void skygw_thread_set_state(
|
void skygw_thread_set_state(
|
||||||
skygw_thread_t* thr,
|
skygw_thread_t* thr,
|
||||||
skygw_thr_state_t state);
|
skygw_thr_state_t state);
|
||||||
@ -116,6 +119,9 @@ bool skygw_thread_set_exitflag(
|
|||||||
skygw_thread_t* thr,
|
skygw_thread_t* thr,
|
||||||
skygw_message_t* sendmes,
|
skygw_message_t* sendmes,
|
||||||
skygw_message_t* recmes);
|
skygw_message_t* recmes);
|
||||||
|
|
||||||
|
EXTERN_C_BLOCK_END
|
||||||
|
|
||||||
/** Skygw thread routines */
|
/** Skygw thread routines */
|
||||||
|
|
||||||
/** Skygw file routines */
|
/** Skygw file routines */
|
||||||
|
Reference in New Issue
Block a user