Log: skygw_logmanager_init renamed to mxs_log_init.
skygw_logmanager_init renamed to mxs_log_init and skygw_logmanager_done renamed to mxs_log_finish. skygw_logmanager_exit removed alltogether as all it did was to call skygw_logmanager_done. That appears to have been a source for confusion as in many places a call to skygw_logmanager_done was followed by a call to skygw_logmanager_exit. In addition, the function skygw_log_done was removed from the header, since it lacked an implementation.
This commit is contained in:
@ -439,7 +439,7 @@ return_succ:
|
||||
* @return true if succeed, otherwise false
|
||||
*
|
||||
*/
|
||||
bool skygw_logmanager_init(const char* ident, const char* logdir, log_target_t target)
|
||||
bool mxs_log_init(const char* ident, const char* logdir, log_target_t target)
|
||||
{
|
||||
bool succ = false;
|
||||
|
||||
@ -504,22 +504,13 @@ static void logmanager_done_nomutex(void)
|
||||
lm = NULL;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is provided for atexit() system function.
|
||||
*/
|
||||
void skygw_logmanager_exit(void)
|
||||
{
|
||||
skygw_logmanager_done();
|
||||
}
|
||||
|
||||
/**
|
||||
* End execution of log manager
|
||||
*
|
||||
* Stops file writing thread, releases filewriter, and logfiles.
|
||||
*
|
||||
*/
|
||||
void skygw_logmanager_done(void)
|
||||
void mxs_log_finish(void)
|
||||
{
|
||||
acquire_lock(&lmlock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user