Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
romanett committed Oct 13, 2024
1 parent 5c22a0c commit f4af3f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,6 @@ public virtual bool Publish(OperationContext context, Queue<EventFieldList> noti
{
moreValuesToPublish = true;
}
notifications.Enqueue(overflowEvent);
}

Utils.LogTrace(Utils.TraceMasks.OperationDetail, "MONITORED ITEM: Publish(QueueSize={0})", notifications.Count);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ public uint Publish(OperationContext context, Queue<EventFieldList> notification
notifications.Enqueue(fields);
notificationCount++;
}
//if overflow event is placed at the end of the queue only set overflow to false once the queue is empty
m_overflow = m_overflow && m_eventQueue.ItemsInQueue > 0 && !m_discardOldest;
//if overflow event is placed at the end of the queue only set overflow to false if the overflow event still fits into the publish
m_overflow = m_overflow && notificationCount == maxNotificationsPerPublish && !m_discardOldest;

return notificationCount;
}
Expand Down

0 comments on commit f4af3f4

Please sign in to comment.