Skip to content

Commit

Permalink
dbEvent: re-add compaction of duplicate "empty" events
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jun 29, 2022
1 parent 3265241 commit 4df48c9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/database/src/ioc/db/dbEvent.c
Expand Up @@ -789,6 +789,18 @@ static void db_queue_event_log (evSubscrip *pevent, db_field_log *pLog)

LOCKEVQUE (ev_que);

/* if we have an event on the queue and both the last
* event on the queue and the current event reference
* a record field, simply ignore duplicate events.
*/
if (pevent->npend > 0u
&& !dbfl_has_copy(*pevent->pLastLog)
&& !dbfl_has_copy(pLog)) {
db_delete_field_log(pLog);
UNLOCKEVQUE (ev_que);
return;
}

/*
* add to task local event que
*/
Expand Down

0 comments on commit 4df48c9

Please sign in to comment.