0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd:Ⓜ️:vm: Add event_id and share sequence to the loghead; minor cleanup.

This commit is contained in:
Jason Volk 2019-03-28 16:00:54 -07:00
parent 4b816f8c74
commit f340e44692
2 changed files with 8 additions and 3 deletions

View file

@ -1076,12 +1076,17 @@ ircd::m::vm::loghead(const mutable_buffer &buf,
{
return fmt::sprintf
{
buf, "vm[%lu:%lu:%lu] eval[%lu] id:%lu",
buf, "vm:%lu:%lu:%lu eval:%lu seq:%lu share:%lu:%lu] %s",
sequence::uncommitted,
sequence::committed,
sequence::retired,
sequence::get(eval),
eval.id,
sequence::get(eval),
eval.sequence_shared[0],
eval.sequence_shared[1],
eval.event_?
string_view{json::get<"event_id"_>(*eval.event_)}:
"<unidentified>"_sv,
};
}

View file

@ -673,7 +673,7 @@ ircd::m::vm::execute_edu(eval &eval,
enum ircd::m::vm::fault
ircd::m::vm::execute_pdu(eval &eval,
const event &event)
const event &event)
{
const scope_count pending
{