MXS-2020 Remove maxscale/debug.h

- Removed from all files.
- maxbase/assert.h included where necessary.
This commit is contained in:
Johan Wikman 2018-08-22 10:30:46 +03:00
parent 3f53eddbde
commit ab9a9f92cb
52 changed files with 40 additions and 68 deletions

View File

@ -15,6 +15,7 @@
#include <string.h>
#include <stdbool.h>
#include "maxavro_internal.h"
#include <maxbase/assert.h>
#include <maxscale/log.h>
#include <errno.h>

View File

@ -14,6 +14,7 @@
#include "maxavro_internal.h"
#include <errno.h>
#include <string.h>
#include <maxbase/assert.h>
#include <maxscale/log.h>
#include <zlib.h>

View File

@ -14,7 +14,7 @@
#include <maxscale/cdefs.h>
#include "maxavro_internal.h"
#include <string.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/log.h>
#include <errno.h>

View File

@ -14,7 +14,7 @@
#include "maxavro_internal.h"
#include <jansson.h>
#include <string.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/log.h>
static const MAXAVRO_SCHEMA_FIELD types[MAXAVRO_TYPE_MAX] =

View File

@ -23,7 +23,6 @@
#include <errno.h>
#include <limits.h>
#include <getopt.h>
#include <maxscale/debug.h>
static int verbose = 0;
static uint64_t seekto = 0;

View File

@ -28,7 +28,6 @@
#include <maxscale/cdefs.h>
#include <string.h>
#include <maxscale/debug.h>
#include <maxscale/hint.h>
#include <maxscale/spinlock.h>
#include <stdint.h>

View File

@ -17,6 +17,7 @@
#include <iterator>
#include <new>
#include <vector>
#include <maxbase/assert.h>
#include <maxscale/buffer.h>
namespace maxscale

View File

@ -21,6 +21,7 @@
#include <maxbase/poll.h>
#include <maxscale/authenticator.h>
#include <maxscale/buffer.h>
#include <maxscale/log.h>
#include <maxscale/modinfo.h>
#include <maxscale/protocol.h>
#include <maxscale/spinlock.h>

View File

@ -1,21 +0,0 @@
/*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2022-01-01
*
* On the date above, in accordance with the Business Source License, use
* of this software will be governed by version 2 or later of the General
* Public License.
*/
#pragma once
#include <maxscale/cdefs.h>
#include <maxbase/assert.h>
#include <maxscale/log.h>
MXS_BEGIN_DECLS
MXS_END_DECLS

View File

@ -17,7 +17,6 @@
*/
#include <maxscale/cdefs.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -17,8 +17,6 @@
#include <string>
#include <time.h>
#include <maxscale/debug.h>
/**
* @brief Return the current HTTP-date
*

View File

@ -18,9 +18,9 @@
#include <sstream>
#include <string>
#include <maxbase/assert.h>
#include <maxbase/jansson.h>
#include <maxscale/alloc.h>
#include <maxscale/debug.h>
namespace std
{

View File

@ -20,7 +20,7 @@
#include <stdint.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
MXS_BEGIN_DECLS

View File

@ -25,7 +25,6 @@
#include <maxscale/cdefs.h>
#include <stdbool.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -60,7 +60,7 @@
#include <pthread.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/log.h>
#include <maxscale/query_classifier.h>
#include <maxscale/protocol/mysql.h>

View File

@ -14,7 +14,7 @@
#include "builtin_functions.h"
#include <stdlib.h>
#include <string.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
static struct
{

View File

@ -27,7 +27,7 @@
#include <sys/stat.h>
#include <maxbase/atomic.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/utils.h>
#include <maxscale/config.h>
#include <maxscale/clock.h>

View File

@ -16,7 +16,6 @@
#include <sstream>
#include <maxscale/protocol/mysql.h>
#include <maxscale/debug.h>
using namespace maxscale;

View File

@ -17,12 +17,12 @@
#include <stdlib.h>
#include <sstream>
#include <maxscale/alloc.h>
#include <maxbase/assert.h>
#include <maxbase/atomic.h>
#include <maxscale/debug.h>
#include <maxscale/spinlock.h>
#include <maxscale/alloc.h>
#include <maxscale/hint.h>
#include <maxscale/log.h>
#include <maxscale/spinlock.h>
#include <maxscale/utils.h>
#if defined(BUFFER_TRACE)

View File

@ -14,8 +14,8 @@
#include "internal/event.hh"
#include <algorithm>
#include <string.h>
#include <maxbase/assert.h>
#include <maxbase/atomic.h>
#include <maxscale/debug.h>
using namespace std;

View File

@ -21,8 +21,8 @@
#include <string>
#include <thread>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/debug.h>
#include <maxscale/log.h>
#include <maxscale/pcre2.h>

View File

@ -13,6 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <maxbase/assert.h>
#include <maxscale/hint.h>
#include <maxscale/alloc.h>

View File

@ -19,7 +19,6 @@
#include <maxscale/cdefs.h>
#include <maxscale/dcb.h>
#include <maxscale/modinfo.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -22,7 +22,6 @@
#include <maxbase/logger.hh>
#include <maxscale/config.h>
#include <maxscale/debug.h>
#include <maxscale/json_api.h>
#include <maxscale/session.h>

View File

@ -12,7 +12,7 @@
*/
#include <maxscale/mariadb.hh>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
namespace
{

View File

@ -25,8 +25,8 @@
*/
#include <maxscale/pcre2.h>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/debug.h>
#include <maxscale/log.h>
/**

View File

@ -20,7 +20,6 @@
#include <stdlib.h>
#include <maxscale/log.h>
#include <string.h>
#include <maxscale/debug.h>
#include <maxscale/users.h>
#include <strings.h>
#include <math.h>

View File

@ -29,7 +29,6 @@
#include <maxscale/alloc.h>
#include <maxscale/config.h>
#include <maxscale/debug.h>
#include <maxscale/log.h>
namespace

View File

@ -12,9 +12,9 @@
*/
#include <maxscale/spinlock.h>
#include <maxbase/assert.h>
#include <maxbase/atomic.h>
#include <time.h>
#include <maxscale/debug.h>
void spinlock_init(SPINLOCK *lock)

View File

@ -27,7 +27,7 @@
#include <string.h>
#include <maxscale/alloc.h>
#include <maxscale/config.h>
#include <maxscale/debug.h>
#include <maxscale/log.h>
#include <maxscale/utils.h>
static int thread_count = 0;

View File

@ -16,8 +16,8 @@
#include <stdio.h>
#include <thread>
#include <maxbase/assert.h>
#include <maxbase/atomic.h>
#include <maxscale/debug.h>
#define NTHR 10

View File

@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/buffer.h>
#include <maxscale/hint.h>

View File

@ -20,7 +20,7 @@
#include <fstream>
#include <iostream>
#include <sstream>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/log.h>
using namespace maxscale;

View File

@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <maxbase/assert.h>
#include <maxscale/hint.h>
#include <maxscale/alloc.h>

View File

@ -13,7 +13,7 @@
#include <iostream>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/http.hh>
using std::string;

View File

@ -15,7 +15,6 @@
#include <string>
#include <maxscale/debug.h>
#include <maxscale/jansson.hh>
#include <maxscale/json_api.h>

View File

@ -19,9 +19,9 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/log.h>
#include <maxscale/debug.h>
static void skygw_log_enable(int priority)
{

View File

@ -16,8 +16,8 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/debug.h>
#include <maxscale/log.h>
static void skygw_log_enable(int priority)

View File

@ -35,7 +35,6 @@
#include <string.h>
#include <maxscale/alloc.h>
#include <maxscale/pcre2.h>
#include <maxscale/debug.h>
#define test_assert(a, b) if(!(a)){fprintf(stderr, b);return 1;}

View File

@ -11,6 +11,7 @@
* Public License.
*/
#include <maxbase/assert.h>
#include <maxscale/utils.h>
#include <maxscale/utils.hh>
#include <string.h>

View File

@ -18,7 +18,6 @@
#include <jansson.h>
#include <maxscale/buffer.h>
#include <maxscale/protocol/mysql.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -26,7 +26,7 @@ using namespace std;
#if !defined(SS_DEBUG)
#define SS_DEBUG
#endif
#include <maxscale/debug.h>
#include <maxbase/assert.h>
GWBUF* create_gwbuf(const char* s)
{

View File

@ -14,7 +14,7 @@
#include "tempfile.hh"
#include <string.h>
#include <unistd.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
namespace
{

View File

@ -17,7 +17,7 @@
#include <errno.h>
#include <functional>
#include <string.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/jansson.hh>
#include <maxscale/mysql_utils.h>
#include <maxscale/pcre2.hh>

View File

@ -14,7 +14,7 @@
#define TESTING_MASKINGRULES
#include "maskingrules.hh"
#include <iostream>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
using namespace std;

View File

@ -22,9 +22,9 @@
#include <stdbool.h>
#include <stdint.h>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/buffer.h>
#include <maxscale/debug.h>
#include <maxscale/filter.h>
#include <maxscale/log.h>
#include <maxscale/modinfo.h>

View File

@ -20,7 +20,7 @@
#include "auroramon.hh"
#include <mysqld_error.h>
#include <maxscale/alloc.h>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/modinfo.h>
#include <maxscale/mysql_utils.h>

View File

@ -15,7 +15,7 @@
#include <algorithm>
#include <sstream>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
using std::string;
@ -234,4 +234,4 @@ Gtid GtidList::get_gtid(uint32_t domain) const
rval = *found;
}
return rval;
}
}

View File

@ -17,9 +17,9 @@
#include "mariadbmon.hh"
#include <inttypes.h>
#include <sstream>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/dcb.h>
#include <maxscale/debug.h>
#include <maxscale/modulecmd.h>
#include <maxscale/mysql_utils.h>

View File

@ -15,8 +15,8 @@
#include <limits.h>
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/debug.h>
#include <maxscale/log.h>
/**

View File

@ -25,7 +25,6 @@
#include <maxscale/log.h>
#include <sys/stat.h>
#include <errno.h>
#include <maxscale/debug.h>
#include <string.h>
#include <strings.h>
#include <maxscale/alloc.h>

View File

@ -17,7 +17,7 @@
#include <sstream>
#include <algorithm>
#include <maxscale/debug.h>
#include <maxbase/assert.h>
#include <maxscale/mysql_utils.h>
#include <maxscale/protocol/mysql.h>