Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
linrunqi08 committed Nov 27, 2023
1 parent 16821b2 commit bc05f05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/event/BlockEventManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class BlockedEventManager : public LogstoreFeedBackInterface {
BlockedEvent() : mLogstoreKey(0), mEvent(NULL), mInvalidTime(time(NULL)), mTimeout(1) {}
void Update(const LogstoreFeedBackKey& logstoreKey, Event* pEvent, int32_t curTime) {
if (mEvent != NULL) {
// There are only two situations where event coverage is possible
// 1. the new event is not timeout event
// 2. old event is timeout event
if (!pEvent->IsReaderFlushTimeout() || mEvent->IsReaderFlushTimeout()) {
delete mEvent;
} else {
Expand Down

0 comments on commit bc05f05

Please sign in to comment.