The MDS does not generally bother locking a Mutation before changing
anything so this lock provides weak protection. In any case, try to
improve on that...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
void MDRequestImpl::_dump(Formatter *f) const
{
+ std::lock_guard l(lock);
f->dump_string("flag_point", _get_state_string());
f->dump_stream("reqid") << reqid;
{
f->dump_string("op_type", "no_available_op_found");
}
}
+
{
f->open_array_section("events");
- std::lock_guard l(lock);
for (auto& i : events) {
f->dump_object("event", i);
}