MXS-2220 Move MxsDiskSpaceThreshold definition to SERVER

Reduces include-clutter a bit.
This commit is contained in:
Esa Korhonen
2018-12-12 14:18:35 +02:00
parent 6209d737e9
commit 405b4de1dd
4 changed files with 10 additions and 9 deletions

View File

@ -15,9 +15,11 @@
#include <maxscale/ccdefs.hh>
#include <string>
#include <maxbase/jansson.h>
#include <maxscale/config.hh>
#include <maxscale/dcb.hh>
#include <maxscale/ssl.h>
#include <unordered_map>
// A mapping from a path to a percentage, e.g.: "/disk" -> 80.
typedef std::unordered_map<std::string, int32_t> MxsDiskSpaceThreshold;
/**
* Server configuration parameters names
@ -37,6 +39,8 @@ const int MAINTENANCE_ON = 100;
const int MAINTENANCE_FLAG_NOCHECK = 0;
const int MAINTENANCE_FLAG_CHECK = -1;
struct DCB;
/* Custom server parameters. These can be used by modules for e.g. weighting routing decisions. */
struct SERVER_PARAM
{