No reason for child to muck with this!
Signed-off-by: Sage Weil <sage@redhat.com>
ss << "slow request " << age << " seconds old, received at "
<< i->get_initiated() << ": " << i->get_desc()
<< " currently "
- << (i->current.size() ? i->current : i->state_string());
+ << (i->current ? i->current : i->state_string());
warning_vector.push_back(ss.str());
// only those that have been shown will backoff
{
Mutex::Locker l(lock);
events.push_back(Event(stamp, event));
+ current = events.back().c_str();
}
dout(5) << "seq: " << seq
<< ", time: " << stamp
vector<Event> events; /// list of events and their times
mutable Mutex lock; /// to protect the events list
- string current; /// the current state the event is in
+ const char *current; /// the current state the event is in
uint64_t seq; /// a unique value set by the OpTracker
uint32_t warn_interval_multiplier; // limits output of a given op warning
uint8_t old_flags = hit_flag_points;
#endif
mark_event(s);
- current = s;
hit_flag_points |= flag;
latest_flag_point = flag;
tracepoint(oprequest, mark_flag_point, reqid.name._type,