db_field_log::mask overwrite with actual event mask.

db_create_event_log() initializes mask with pevent->select.
This commit is contained in:
Michael Davidsaver
2021-10-03 08:12:08 -07:00
parent 446e0d4af8
commit b1d9c57101
+2
View File
@@ -886,6 +886,8 @@ unsigned int caEventMask
if ( (dbChannelField(pevent->chan) == (void *)pField || pField==NULL) &&
(caEventMask & pevent->select)) {
db_field_log *pLog = db_create_event_log(pevent);
if(pLog)
pLog->mask = caEventMask & pevent->select;
pLog = dbChannelRunPreChain(pevent->chan, pLog);
if (pLog) db_queue_event_log(pevent, pLog);
}