0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd::server: Log a dwarning on any canceled cleanups.

This commit is contained in:
Jason Volk 2019-09-09 14:29:27 -07:00
parent ebb2f21d61
commit 98a5a09c92

View file

@ -1749,13 +1749,20 @@ ircd::server::link::cleanup_canceled()
auto it(begin(queue)); auto it(begin(queue));
while(it != end(queue)) while(it != end(queue))
{ {
auto &tag{*it}; const auto &tag{*it};
if(tag.committed() || tag.request) if(tag.committed() || tag.request)
{ {
++it; ++it;
continue; continue;
} }
log::dwarning
{
log, "%s removing abandoned tag:%lu",
loghead(*this),
tag.state.id,
};
it = queue.erase(it); it = queue.erase(it);
} }
} }