Add definitions of MXS_MODULE_NAME to all modules
All modules now declare a name for the module. This is name is added as a prefix to all messages logged by a module. The prefix should help determine which part of the system logs a message.
This commit is contained in:
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include "readwritesplit.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
@ -17,7 +20,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <maxscale/router.h>
|
||||
#include "readwritesplit.h"
|
||||
#include "rwsplit_internal.h"
|
||||
|
||||
#include <maxscale/log_manager.h>
|
||||
|
@ -25,9 +25,12 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "readwritesplit"
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/hashtable.h>
|
||||
#include <maxscale/service.h>
|
||||
#include <math.h>
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
|
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include "readwritesplit.h"
|
||||
|
||||
#include <my_config.h>
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
@ -18,7 +21,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <maxscale/router.h>
|
||||
#include "readwritesplit.h"
|
||||
#include "rwsplit_internal.h"
|
||||
|
||||
#include <mysql.h>
|
||||
|
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include "readwritesplit.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
@ -18,7 +21,6 @@
|
||||
#include <maxscale/alloc.h>
|
||||
|
||||
#include <maxscale/router.h>
|
||||
#include "readwritesplit.h"
|
||||
#include "rwsplit_internal.h"
|
||||
/**
|
||||
* @file rwsplit_route_stmt.c The functions that support the routing of
|
||||
|
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include "readwritesplit.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
@ -17,7 +20,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <maxscale/router.h>
|
||||
#include "readwritesplit.h"
|
||||
#include "rwsplit_internal.h"
|
||||
/**
|
||||
* @file rwsplit_select_backends.c The functions that implement back end
|
||||
|
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include "readwritesplit.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
@ -17,7 +20,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <maxscale/router.h>
|
||||
#include "readwritesplit.h"
|
||||
#include "rwsplit_internal.h"
|
||||
|
||||
/**
|
||||
|
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include "readwritesplit.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
@ -21,7 +24,6 @@
|
||||
#include <maxscale/modutil.h>
|
||||
|
||||
#include <maxscale/router.h>
|
||||
#include "readwritesplit.h"
|
||||
#include "rwsplit_internal.h"
|
||||
/**
|
||||
* @file rwsplit_tmp_table.c The functions that carry out checks on
|
||||
|
Reference in New Issue
Block a user