Fix non-deterministic logging of unmatched DNS msgs, addresses BIT-1153

Unmatched DNS messages may fail to be logged sometimes due to a type of
iterator invalidation.
This commit is contained in:
Jon Siwek 2014-03-10 11:34:57 -05:00
parent 69d52feb18
commit f30d3e635e

View file

@ -181,10 +181,9 @@ function log_unmatched_msgs_queue(q: Queue::Queue)
function log_unmatched_msgs(msgs: PendingMessages)
{
for ( trans_id in msgs )
{
log_unmatched_msgs_queue(msgs[trans_id]);
delete msgs[trans_id];
}
msgs = PendingMessages();
}
function enqueue_new_msg(msgs: PendingMessages, id: count, msg: Info)