Signed-off-by: David Zafman <dzafman@redhat.com>
// Specialized state printer that takes account of inversion of
// ACTIVE, CLEAN checks.
- auto state_name = [](const uint32_t &state) {
+ auto state_name = [](const uint64_t &state) {
// Special cases for the states that are inverted checks
if (state == PG_STATE_CLEAN) {
return std::string("unclean");
bool is_complete() const { return info.last_complete == info.last_update; }
bool should_send_notify() const { return send_notify; }
- int get_state() const { return state; }
+ uint64_t get_state() const { return state; }
bool is_active() const { return state_test(PG_STATE_ACTIVE); }
bool is_activating() const { return state_test(PG_STATE_ACTIVATING); }
bool is_peering() const { return state_test(PG_STATE_PEERING); }