MXS-2013 Move or remove STR-macros
- The ones that were not used were removed. - The ones that were used were moved close to the actual type. In most cases some values were missing and if the definition is close to the type there is a remote chance that they will stay in sync. If detached, they surely will not.
This commit is contained in:
@ -69,6 +69,13 @@ enum select_criteria_t
|
||||
LAST_CRITERIA /**< not used except for an index */
|
||||
};
|
||||
|
||||
#define STRCRITERIA(c) ((c) == UNDEFINED_CRITERIA ? "UNDEFINED_CRITERIA" : \
|
||||
((c) == LEAST_GLOBAL_CONNECTIONS ? "LEAST_GLOBAL_CONNECTIONS" : \
|
||||
((c) == LEAST_ROUTER_CONNECTIONS ? "LEAST_ROUTER_CONNECTIONS" : \
|
||||
((c) == LEAST_BEHIND_MASTER ? "LEAST_BEHIND_MASTER" : \
|
||||
((c) == LEAST_CURRENT_OPERATIONS ? "LEAST_CURRENT_OPERATIONS" : \
|
||||
"Unknown criteria")))))
|
||||
|
||||
/**
|
||||
* Controls how master failure is handled
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user