MXS-1703: Compile mariadbmon.h as C++
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
|
||||
#define MXS_MODULE_NAME "mariadbmon"
|
||||
|
||||
#include "mariadbmon.h"
|
||||
#include "mariadbmon.hh"
|
||||
#include <inttypes.h>
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
@ -13,28 +13,25 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <maxscale/cppdefs.hh>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <maxscale/monitor.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/thread.h>
|
||||
#include <mysql.h>
|
||||
#include <mysqld_error.h>
|
||||
#include <maxscale/log_manager.h>
|
||||
#include <maxscale/secrets.h>
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/modinfo.h>
|
||||
|
||||
#include <maxscale/config.h>
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/hashtable.h>
|
||||
#include <maxscale/log_manager.h>
|
||||
#include <maxscale/modinfo.h>
|
||||
#include <maxscale/monitor.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/secrets.h>
|
||||
#include <maxscale/thread.h>
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* MariaDB Monitor instance data
|
||||
*/
|
||||
typedef struct
|
||||
// MariaDB Monitor instance data
|
||||
struct MYSQL_MONITOR
|
||||
{
|
||||
THREAD thread; /**< Monitor thread */
|
||||
int shutdown; /**< Flag to shutdown the monitor thread */
|
||||
@ -74,6 +71,4 @@ typedef struct
|
||||
MXS_MONITORED_SERVER** excluded_servers; /**< Servers banned for master promotion during auto-failover. */
|
||||
|
||||
MXS_MONITOR* monitor;
|
||||
} MYSQL_MONITOR;
|
||||
|
||||
MXS_END_DECLS
|
||||
};
|
Reference in New Issue
Block a user