MXS-2313: Expose only two rank values
The rank can now only be used to define two groups of servers: primary and secondary servers. This limits the exposure and reduces the number of possibilities that can arise from the use of this parameter thus making it more predictable.
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include <unordered_map>
|
||||
#include <maxbase/average.hh>
|
||||
#include <maxscale/ssl.hh>
|
||||
#include <maxscale/modinfo.h>
|
||||
|
||||
/**
|
||||
* Server configuration parameters names
|
||||
@ -30,6 +31,12 @@ extern const char CN_PERSISTPOOLMAX[];
|
||||
extern const char CN_PROXY_PROTOCOL[];
|
||||
extern const char CN_RANK[];
|
||||
|
||||
// The enum values for `rank`
|
||||
extern const MXS_ENUM_VALUE rank_values[];
|
||||
|
||||
// Default value for `rank`
|
||||
extern const char* DEFAULT_RANK;
|
||||
|
||||
/**
|
||||
* Status bits in the SERVER->status member, which describes the general state of a server. Although the
|
||||
* individual bits are independent, not all combinations make sense or are used. The bitfield is 64bits wide.
|
||||
|
Reference in New Issue
Block a user