MXS-2197 Remove most includes of maxscale/log.hh
All cc-files should include maxscale/ccdefs.hh, which includes maxscale/log.hh. Consequently it need not be included again.
This commit is contained in:
parent
dc8c2f27f7
commit
0927a0b938
@ -44,7 +44,6 @@
|
||||
#include <maxscale/clock.h>
|
||||
#include <maxscale/limits.h>
|
||||
#include <maxscale/listener.hh>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/poll.hh>
|
||||
#include <maxscale/router.hh>
|
||||
#include <maxscale/server.hh>
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
#include <maxbase/assert.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/pcre2.h>
|
||||
|
||||
/**
|
||||
|
@ -13,23 +13,13 @@
|
||||
|
||||
/**
|
||||
* @file maxkeys.c - Create the random encryption keys for maxscale
|
||||
*
|
||||
* @verbatim
|
||||
* Revision History
|
||||
*
|
||||
* Date Who Description
|
||||
* 24/07/13 Mark Riddoch Initial implementation
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
#include "internal/secrets.h"
|
||||
|
||||
#include <maxscale/ccdefs.hh>
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/paths.h>
|
||||
#include <maxscale/random.h>
|
||||
#include "internal/secrets.h"
|
||||
|
||||
#ifdef HAVE_GLIBC
|
||||
struct option options[] =
|
||||
|
@ -13,14 +13,6 @@
|
||||
|
||||
/**
|
||||
* @file maxpasswd.c - Implementation of pasword encoding
|
||||
*
|
||||
* @verbatim
|
||||
* Revision History
|
||||
*
|
||||
* Date Who Description
|
||||
* 24/07/13 Mark Riddoch Initial implementation
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include <maxscale/ccdefs.hh>
|
||||
@ -31,7 +23,6 @@
|
||||
#include <getopt.h>
|
||||
|
||||
#include <maxscale/paths.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/random.h>
|
||||
#include <maxscale/alloc.h>
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <maxscale/log.hh>
|
||||
#include "../config.cc"
|
||||
|
||||
using namespace std;
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <maxbase/assert.h>
|
||||
#include <maxscale/log.hh>
|
||||
|
||||
using namespace maxscale;
|
||||
using namespace std;
|
||||
|
@ -11,6 +11,7 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include <maxscale/log.hh>
|
||||
#include <unistd.h>
|
||||
#include <cstdio>
|
||||
#include <stdint.h>
|
||||
@ -20,7 +21,6 @@
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <semaphore.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/random.h>
|
||||
|
||||
using std::cerr;
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/buffer.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/modutil.hh>
|
||||
#include <maxscale/protocol/mysql.hh>
|
||||
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/clock.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/modutil.hh>
|
||||
#include <maxscale/mysql_utils.hh>
|
||||
#include <maxscale/protocol/mysql.hh>
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
#include <maxscale/modutil.hh>
|
||||
#include <maxscale/protocol/mysql.hh>
|
||||
#include <maxscale/log.hh>
|
||||
|
||||
namespace maxscale
|
||||
{
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include <maxbase/worker.hh>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/modulecmd.hh>
|
||||
#include <maxscale/paths.h>
|
||||
#include <maxscale/protocol/mysql.hh>
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include <maxscale/router.hh>
|
||||
#include <maxbase/atomic.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/version.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/buffer.hh>
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
#include <maxbase/assert.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/log.hh>
|
||||
|
||||
/**
|
||||
* @brief Allocate an Avro table
|
||||
|
@ -33,7 +33,6 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/maxscale.h>
|
||||
#include <maxscale/pcre2.h>
|
||||
#include <maxscale/utils.h>
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <maxbase/worker.hh>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/modulecmd.hh>
|
||||
#include <maxscale/paths.h>
|
||||
#include <maxscale/protocol/mysql.hh>
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <blr_constants.hh>
|
||||
#include <maxscale/log.hh>
|
||||
|
||||
/**
|
||||
* @file binlog_common.c - Common binary log code shared between multiple modules
|
||||
|
@ -41,7 +41,6 @@
|
||||
#include <maxscale/config.hh>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/housekeeper.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/protocol/mysql.hh>
|
||||
#include <maxscale/router.hh>
|
||||
#include <maxscale/secrets.h>
|
||||
|
@ -35,9 +35,6 @@
|
||||
#include <maxbase/atomic.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
|
||||
#include <maxscale/log.hh>
|
||||
|
||||
|
||||
/**
|
||||
* Initialise the cache for this instanceof the binlog router. As a side
|
||||
* effect also determine the binlog file to read and the position to read
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include <maxbase/atomic.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/encryption.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/paths.h>
|
||||
#include <maxscale/router.hh>
|
||||
#include <maxscale/secrets.h>
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include <maxscale/buffer.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/housekeeper.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/protocol/mysql.hh>
|
||||
#include <maxscale/router.hh>
|
||||
#include <maxscale/routingworker.hh>
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include <maxscale/clock.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/housekeeper.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/maxscale.h>
|
||||
#include <maxscale/poll.hh>
|
||||
#include <maxscale/router.hh>
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/log.hh>
|
||||
|
||||
|
||||
static void printVersion(const char* progname);
|
||||
|
@ -35,7 +35,6 @@
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/housekeeper.h>
|
||||
#include <time.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/paths.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/utils.hh>
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include <maxbase/atomic.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/modinfo.h>
|
||||
#include <maxscale/poll.hh>
|
||||
#include <maxscale/router.hh>
|
||||
|
@ -33,7 +33,6 @@
|
||||
#include <maxbase/atomic.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/modinfo.h>
|
||||
#include <maxscale/poll.hh>
|
||||
#include <maxscale/router.hh>
|
||||
|
@ -43,7 +43,6 @@
|
||||
#include <maxscale/dcb.hh>
|
||||
#include <maxscale/filter.hh>
|
||||
#include <maxscale/housekeeper.h>
|
||||
#include <maxscale/log.hh>
|
||||
#include <maxscale/maxscale.h>
|
||||
#include <maxscale/modulecmd.hh>
|
||||
#include <maxscale/router.hh>
|
||||
|
Loading…
x
Reference in New Issue
Block a user