55 bool startup()
const {
56 return s == RS_STARTUP;
58 bool primary()
const {
59 return s == RS_PRIMARY;
61 bool secondary()
const {
62 return s == RS_SECONDARY;
64 bool recovering()
const {
65 return s == RS_RECOVERING;
67 bool startup2()
const {
68 return s == RS_STARTUP2;
70 bool rollback()
const {
71 return s == RS_ROLLBACK;
73 bool readable()
const {
74 return s == RS_PRIMARY || s == RS_SECONDARY;
76 bool removed()
const {
77 return s == RS_REMOVED;
79 bool arbiter()
const {
80 return s == RS_ARBITER;
83 std::string toString()
const;
93 inline std::string MemberState::toString()
const {
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
Definition: member_state.h:37