We're moving towards dynamically-allocated states instead of the static
ones this started with, so the whole bitmask-based thing doesn't make
much sense any more. Assume people won't use that and provide a default.
Signed-off-by: Greg Farnum <greg@inktank.com>
Message *get_req() const { return request; }
virtual void mark_event(const string &event);
- virtual const char *state_string() const = 0;
+ virtual const char *state_string() const {
+ return events.rbegin()->second.c_str();
+ }
virtual void dump(utime_t now, Formatter *f) const = 0;
};